我正在尝试使用公钥从 NAS SSH 到网络服务器。NAS 用户是“root”,网络服务器用户是“backup”
我已正确设置所有权限,当我调试 SSH 连接时,我得到:(调试的最后一点)
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Offering DSA public key: /root/.ssh/id_dsa.pub
debug1: Server accepts key: pkalg ssh-dss blen 433
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_dsa.pub':
Run Code Online (Sandbox Code Playgroud)
我正在使用命令:
ssh -v -i /root/.ssh/id_dsa.pub backup@webserver.com
Run Code Online (Sandbox Code Playgroud)
它要求输入密码的事实肯定是一个好兆头,但我不希望它提示输入此密码或密码(如果我在密码上按“返回”就会出现)