本地访问远程服务器,创建public key
Generating RSA Keys
- create public and private SSH keys on the command-line(在本地生成keys)
mkdir .ssh
chmod 700 .ssh
ssh-keygen -t rsa
// copy to host
scp id_rsa.pub target@192.168.1.111:.
Transfer Client Key to Host
- cp authorized keys authorized keys_Backup
// copy the id_rsa.pub to the .ssh/authorized_keys
cat id_rsa.pub >> .ssh/authorized_keys