Unable to passwordless ssh via RTC build definition
Ananya Joisa (45●6●21●24)
| asked Sep 10 '13, 3:43 p.m.
retagged Sep 16 '13, 8:24 a.m. by Ralph Earle (257●3●9)
Hi All,
I have defined build definition say BD1, in my repository workspace. Via BD1 I am trying to execute the command "ssh -t -t someMachine hello.pl". That is passwordless ssh to the machine and run hello.pl. Passwordless ssh is already setup for the id. When I run the xml associated with BD1 manually, the script runs successfully giving the output RequestBuild: [exec] Hello! [exec] Connection to someMachine closed. But when I run this xml via BD1, I see the following error. Not sure why it is not running via the RTC [exec] Permission denied, please try again. [exec] Permission denied, please try again. [exec] Permission denied (publickey,password,keyboard-interactive). [exec] Result: 255 Please guide. Thanks. Ananya |
3 answers
Hi Ananya, when you run a build using JBE, it runs on the machine running the JBE process, which may be different than the developer's machine or the RTC server machine. Can you please clarify which machine you're using when you test it manually?
Another difference is that when running is that we close the target process's stdin, to avoid it blocking on JBE if it asks for input. Maybe ssh doesn't like this.
|
Hi Nick, I tried adding the -n option but I got the same error. I also, added the -v option for verbose and in the debug statements that I see, the main difference is :
running xml manually : [exec] debug1: Reading configuration data /afs/btv.ibm.com/u/edatkpv/.ssh/config [exec] debug1: Reading configuration data /etc/ssh/ssh_config [exec] debug1: identity file /afs/btv.ibm.com/u/edatkpv/.ssh/id_rsa type 1 [exec] debug1: identity file /afs/btv.ibm.com/u/edatkpv/.ssh/id_rsa-cert type -1 [exec] debug1: identity file /afs/btv.ibm.com/u/edatkpv/.ssh/id_dsa type 2 [exec] debug1: Host 'btvedacron01.btv.ibm.com' is known and matches the ECDSA host key. bug1: Offering RSA public key: /afs/btv.ibm.com/u/edatkpv/.ssh/id_rsa [exec] debug1: Server accepts key: pkalg ssh-rsa blen 151 [exec] debug1: read PEM private key done: type RSA [exec] debug1: Sending AFS tokens [exec] debug1: Authentication succeeded (publickey). running xml via RTC build definition : [exec] debug1: Reading configuration data /etc/ssh/ssh_config [exec] debug1: identity file /.ssh/id_rsa type 1 [exec] debug1: identity file /.ssh/id_rsa-cert type -1 [exec] debug1: identity file /.ssh/id_dsa type -1 [exec] debug1: Host 'btvedacron01.btv.ibm.com' is known and matches the RSA host key. bug1: Offering RSA public key: /.ssh/id_rsa [exec] debug1: Authentications that can continue: publickey,password,keyboard-interactive [exec] debug1: Trying private key: /.ssh/id_dsa [exec] debug1: Trying private key: /.ssh/id_ecdsa [exec] debug1: Next authentication method: keyboard-interactive These are the major differences I see before the error For some reason, RTC is not reading /afs/btv.ibm.com/u/edatkpv/.ssh/config. Do you happen to know if can make RTC point to the right place? There are more similar differences but I am not able to attach files here. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.