如图,当普通用户student
使用ssh-copy-id
发送秘钥给远程机器redhat
时,默认采用student
进行登录。
所以在这时,如果对方机器不存在student账户时,就会报错。
正确写法(将连接用户名写全):
ssh-copy-id root@redhat
如图,当普通用户student
使用ssh-copy-id
发送秘钥给远程机器redhat
时,默认采用student
进行登录。
所以在这时,如果对方机器不存在student账户时,就会报错。
正确写法(将连接用户名写全):
ssh-copy-id root@redhat