sudo vim /etc/ssh/sshd_config
# Port 9022 //修改ssh端口
# PermitRootLogin yes // 允许root登录
sudo systemctl restart ssh //重启ssh
ssh-keygen -R 192.168.3.10 //清除连接过的hostskown
Search
Jul 25, 20241 min read
sudo vim /etc/ssh/sshd_config
# Port 9022 //修改ssh端口
# PermitRootLogin yes // 允许root登录
sudo systemctl restart ssh //重启ssh
ssh-keygen -R 192.168.3.10 //清除连接过的hostskown