ssh-copy-id bigboss1
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: Read from socket failed: Connection reset by peer
解决办法:
rm -rf /root/.ssh/*
后重新配置ssh
ssh-keygen
ssh-copy-id bigboss1
千万不要删除了/etc/ssh/*
,如果意外删了,也有办法
yum install openssh
yum list |grep openssh
yum install openssh-server
yum install openssh-clinents
这就修复了ssh文件夹的内容,就可以重新配置ssh免密登录了