我可以ssh登陆,因为当时还要求我publickey的密码并且成功登陆了但是scp传输文件的时候就是不行本地root执行的命令scp -r -p $SERVERPORT $ROOTDIR $SERVERUSERNAM@$SERVERIPV4:/home/$SERVERUSERNAME/Documents/scripts显示transfer fileroot@192.168.27.150's password: Permission denied, please try again.root@192.168.27.150's password: Permission denied, please try again.root@192.168.27.150's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).普通用户执行命令su - $CURRENTUSER -c "scp -r -p $SERVERPORT $ROOTDIR $SERVERUSERNAM@$SERVERIPV4:/home/$SERVERUSERNAME/Documents/scripts"显示transfer fileHost key verification failed.lost connection服务器禁用root了,修改的地方有PermitRootLogin noDenyUsers rootPermitEmptyPasswords noIgnoreRhosts yesHostbasedAuthentication no请求大家的帮助,谢谢。
1 回答
- 1 回答
- 0 关注
- 2422 浏览
添加回答
举报
0/150
提交
取消