系统
ubuntu 16.04 64bit
步骤
- 服务器的~/目录新建文件夹.ssh,权限0700
- 上传公钥到服务器的~/.ssh/目录,重命名为authorized_keys,权限为0644
- 编辑/etc/ssh/sshd_config
- 重启服务器
- 愉快的玩耍吧~
PubkeyAuthentication yes PasswordAuthentication no
reboot
ssh -i [PrivateKey] [root@]server
ubuntu 16.04 64bit
PubkeyAuthentication yes PasswordAuthentication no
reboot
ssh -i [PrivateKey] [root@]server