安装SSH:
sudo apt-get install ssh
开启SSH服务:
sudo /etc/init.d/ssh start
用ssh登录主机:
SSH username@ipaddress
eg:admin@10.24.0.2
本人主机名 wait:
The authenticity of host '10.22.22.250 (10.22.22.250)' can't be established.
RSA key fingerprint is 09:63:3f:e2:ce:00:85:dc:34:6e:05:f3:e1:ba:3e:ba.
出现如此问题:
解决: ssh -keygen
然后 cd ~/.ssh
从服务器拉下 本人到 id_rsa
然后 cp 到 ~/.ssh 下
问题 :
Permissions 0664 for '/home/wait/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
则表示当前密钥文件 id_rsa 权限太高 需要修改权限
解决: cd ~/.ssh/ chmod 0600 id_rsa