靓丽秀发

文章
3
资源
0
加入时间
4年1月29天

如何建立ssh互信

ssh互信基本知识点:ssh-keygen:生成公钥和私钥,默认生成在~/.ssh下id_rsa文件是私钥,id_rsa.pub文件是公钥。ssh-copy-id -i ~/.ssh/id_rsa.pub remote_ip:这个命令表示把私钥拷贝到远端的authorized_keys文件中。无authorized_keys则自动创建文件并写入公钥,有authorized_keys则在...