sshclinet机器:产生公私钥(公钥相当于一把锁)

sshclient:将公钥发给sshserver(抛出锁子)

sshclinet去连sshserver不需要密钥

二 ssh优化

cat /etc/ssh/sshd_config 追加一下

Port 22#ssh连接默认的端口

PermitRootLogin yes #root用户黑客都知道,禁止它远程登录

PermitEmptyPasswords no #禁止空密码登录

UseDNS no #不使用DNS

GSSAPIAuthentication no

三 ssh连接慢解决

cat /etc/ssh/sshd_config

UseDNS no #不使用DNS

GSSAPIAuthentication no



 hosts文件里添加主机名解析

  

相关文章:

  • 2022-02-11
  • 2021-07-25
  • 2022-12-23
  • 2021-07-02
  • 2021-11-19
  • 2021-12-02
  • 2022-12-23
猜你喜欢
  • 2022-03-06
  • 2021-06-08
  • 2021-07-28
  • 2021-12-14
  • 2022-01-23
  • 2021-06-20
  • 2021-11-09
相关资源
相似解决方案