仅具有密码身份验证的SCP不会要求我输入密码
我正在尝试使用scp将文件从一台服务器复制到另一台服务器。 在两台服务器上,我都将ssh端口配置为222。两台服务器的sshd_config完全相同(未启用RootLogin,已启用PasswordAuthentication) 由于此处解释的时间太长,我无法使用密钥身份验证。 当我使用scp从服务器A复制到服务器B(登录到A)时,它可以工作。但是当我从B到A做同样的事情(登录到B)时,它不起作用:我收到一条错误消息“权限被拒绝”,并且scp不要求我输入密码(尽管启用了密码身份验证) 这是我使用的命令(登录到服务器B): scp -P 222 -vvv ~/backup/file user@serverA:/home/user/backup 这是输出的最后几行: debug1: SSH2_MSG_SERVICE_ACCEPT received debug3: send packet: type 50 debug3: receive packet: type 51 debug1: Authentications that can continue: password debug3: start over, passed a different list password debug3: preferred publickey,keyboard-interactive debug1: No more authentication methods to try. user@serverA: …