我正在尝试使用公共密钥从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':
我正在使用命令:
ssh -v -i /root/.ssh/id_dsa.pub backup@webserver.com
它要求输入密码短语的事实肯定是一个好兆头,但我不希望它提示输入密码或密码(如果我在密码短语上按“ return”,则提示输入密码)