One Linux connect to the Other Linux OS without password steps

One Linux connect to the Other Linux OS without password steps

1.Logon Linux with your account

   cd ~/.ssh

   ssh-keygen -t rsa

2. Cd to the dir ~/.ssh/

   cp id_rsa.pub authorized_keys

3. Copy keys to remote Linux server

     scp authorized_keys root@xx.xxx.xxx.xxx:/etc/ssh/keys-root/authorized_keys (for VMware esxi server)

     scp authorized_keys root@xx.xxx.xxx.xxx:~/.ssh/(for Other Linux OS)

4. Try connect Linux server you may do not need password now

     ssh root@xx.xxx.xxx.xxx

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容