2
我有一台主机在用户M1上运行,机器M1上。我想用YYY用户在M2机器上运行一个从站。Jenkins:使用不同的用户名通过SSH连接到从站
我有两台机器之间代替公钥和私钥,这样我可以做
[[email protected]]$ ssh [email protected]
,我连接。
在Jenkins中,我创建了用户名M2的凭证并选择了选项从Jenkins主〜/ .ssh。但是,当我尝试连接失败:
[04/18/13 14:58:11] [SSH] Opening SSH connection to M2:22.
ERROR: Failed to authenticate as YYY with credential=c2cdc4dd-cb39-4f15-8329-033933ad5621
java.io.IOException: Publickey authentication failed.
[04/18/13 14:58:11] [SSH] Authentication failed.
hudson.AbortException: Authentication failed.
出人意料的是,如果我使用选项直接进入和复制粘贴的〜/ .ssh/id_dsa的私钥,那么它的工作原理。
我在做什么错?