配置 ssh key 登录和改 sshd 端口
保存 ssh-key
1 | cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys |
禁用密码登录与改端口
1 | sudo vim /etc/ssh/sshd_config |
1 | Port 22 |
1 | sudo service sshd restart |
or
1 | sudo service ssh restart |
All articles in this blog are licensed under CC BY-SA 4.0 unless stating additionally.
Comment