首页 > 代码库 > linux 密钥登录

linux 密钥登录

ssh-keygen -t rsa

ssh-copy-id -i .ssh/id_rsa.pub root@10.0.50.34

[root@localhost ~]# ll .ssh/authorized_keys

-rw——- 1 root root 391 Aug 4 18:31 .ssh/authorized_keys

linux 密钥登录