Public Keys

来源:互联网 发布:网络利弊怎么说英语 编辑:程序博客网 时间:2024/05/22 04:42

本地访问远程服务器,创建public key

Generating RSA Keys

  • create public and private SSH keys on the command-line(在本地生成keys)
mkdir .sshchmod 700 .sshssh-keygen -t rsa// copy to hostscp 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_keyscat id_rsa.pub >> .ssh/authorized_keys
0 0
原创粉丝点击