首页 > 代码库 > ubuntu无密码登录

ubuntu无密码登录

A机(1)路径注意下(/root/.ssh/)

ssh-keygen -t rsa -P ‘‘ -f /root/.ssh/id_rsa

cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys

scp /root/.ssh/id_rsa.pub skinglzw3@192.168.128.132:/home/skinglzw3/


B机

cat ./id_rsa.pub >> /root/.ssh/authorized_keys


技术分享

本文出自 “我是程序我最大” 博客,请务必保留此出处http://skinglzw.blog.51cto.com/10729606/1866718

ubuntu无密码登录