Linux 身份验证失败
我在设置从属节点后出现此错误,请有人帮助~ 我可以毫无问题地在从属节点上使用ssh,这只发生在jenkins上Linux 身份验证失败,linux,ssh,jenkins,hudson,Linux,Ssh,Jenkins,Hudson,我在设置从属节点后出现此错误,请有人帮助~ 我可以毫无问题地在从属节点上使用ssh,这只发生在jenkins上 [11/20/14 21:01:30] [SSH] Opening SSH connection to 10.105.5.34:22. [11/20/14 21:01:30] [SSH] Authentication failed. hudson.AbortException: Authentication failed. at hudson.plugins.sshslaves
[11/20/14 21:01:30] [SSH] Opening SSH connection to 10.105.5.34:22.
[11/20/14 21:01:30] [SSH] Authentication failed.
hudson.AbortException: Authentication failed.
at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1178)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:701)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:696)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
[11/20/14 21:01:30] Launch failed - cleaning up connection
[11/20/14 21:01:30] [SSH] Connection closed.
jenkins版本是最新的1.59,ssh插件也是最新的尝试使用以下命令将ssh连接到主机: ssh-v-i~/.ssh/id\u rsaremoteuser@server 其中id_rsa(或dsa)是您的密钥。好好测试一下,因为这可能就是你的问题所在。在服务器上查看auth.log。在以下情况下,您应该能够看到错误:
- 居所权限/所有权不正常
- .ssh权限/所有权不正常
- 密钥权限/所有权不正常
chmod 700~/.ssh
chmod 600~/.ssh/authorized_keys我遵循此处提供的步骤