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
原文地址:https://www.cnblogs.com/Peter2014/p/13183333.html