ssh简化登录

配置ssh秘钥登录

ssh-keygen -t rsa
ssh-copy-id root@192.168.2.130

配置ssh config简化登录

 Host centos
   Port 22
   HostName 192.168.2.130
   User root
   IdentityFile ~/.ssh/id_rsa
   IdentitiesOnly yes 

使用简化方式登录

ssh centos
posted @ 2020-06-23 17:29  Peterer~王勇  阅读(249)  评论(0编辑  收藏  举报