AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only

sshexec Permission denied (publickey,password,keyboard-interactive): Jenkins + AIX

  • 1.  sshexec Permission denied (publickey,password,keyboard-interactive): Jenkins + AIX

    Posted Tue November 01, 2016 08:15 AM

    Originally posted by: nishant_78


    I have Jenkins installed on Windows 2012 r2. Via ANT SSHEXEC command, I am triggering a build to connect to an AIX server and executing scripts that are kept in AIX server.

    On triggering a simple script (ssh root@xx.xx.xx.xx -v) in AIX, it is giving below error:

    
    [sshexec] debug1: Reading configuration data /et
    ------------------------------------------------
    
    c/ssh/ssh_config
      [sshexec] debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so):   0509-022 Cannot load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).
      [sshexec]     0509-026 System error: A file or directory in the path name does not exist.
      [sshexec] 
      [sshexec] debug1: Error loading Kerberos, disabling Kerberos auth.
      [sshexec] debug1: Connecting to xx.xx.xx.xx [xx.xx.xx.xx] port 22.
      [sshexec] debug1: Connection established.
      [sshexec] debug1: permanently_set_uid: 0/0
      [sshexec] debug1: identity file /.ssh/id_rsa type -1
      [sshexec] debug1: identity file /.ssh/id_rsa-cert type -1
      [sshexec] debug1: identity file /.ssh/id_dsa type -1
      [sshexec] debug1: identity file /.ssh/id_dsa-cert type -1
      [sshexec] debug1: Remote protocol version 2.0, remote software version OpenSSH_5.4
      [sshexec] debug1: match: OpenSSH_5.4 pat OpenSSH*
      [sshexec] debug1: Enabling compatibility mode for protocol 2.0
      [sshexec] debug1: Local version string SSH-2.0-OpenSSH_5.4
      [sshexec] debug1: SSH2_MSG_KEXINIT sent
      [sshexec] debug1: SSH2_MSG_KEXINIT received
      [sshexec] debug1: kex: server->client aes128-ctr hmac-md5 none
      [sshexec] debug1: kex: client->server aes128-ctr hmac-md5 none
      [sshexec] debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
      [sshexec] debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
      [sshexec] debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
      [sshexec] debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
      [sshexec] debug1: Host 'kvh-us-ibm4-l3' is known and matches the RSA host key.
      [sshexec] debug1: Found key in /.ssh/known_hosts:9
      [sshexec] debug1: ssh_rsa_verify: signature correct
      [sshexec] debug1: SSH2_MSG_NEWKEYS sent
      [sshexec] debug1: expecting SSH2_MSG_NEWKEYS
      [sshexec] debug1: SSH2_MSG_NEWKEYS received
      [sshexec] debug1: Roaming not allowed by server
      [sshexec] debug1: SSH2_MSG_SERVICE_REQUEST sent
      [sshexec] debug1: SSH2_MSG_SERVICE_ACCEPT received
      [sshexec] debug1: Authentications that can continue: publickey,password,keyboard-interactive
      [sshexec] debug1: Next authentication method: publickey
      [sshexec] debug1: Trying private key: /.ssh/id_rsa
      [sshexec] debug1: Trying private key: /.ssh/id_dsa
      [sshexec] debug1: Next authentication method: keyboard-interactive
      [sshexec] debug1: Authentications that can continue: publickey,password,keyboard-interactive
      [sshexec] debug1: Next authentication method: password
      [sshexec] debug1: read_passphrase: can't open /dev/tty: No such device or address
      [sshexec] debug1: Authentications that can continue: publickey,password,keyboard-interactive
      [sshexec] Permission denied, please try again.
      [sshexec] debug1: read_passphrase: can't open /dev/tty: No such device or address
      [sshexec] debug1: Authentications that can continue: publickey,password,keyboard-interactive
      [sshexec] Permission denied, please try again.
      [sshexec] debug1: read_passphrase: can't open /dev/tty: No such device or address
      [sshexec] debug1: Authentications that can continue: publickey,password,keyboard-interactive
      [sshexec] debug1: No more authentication methods to try.
      [sshexec] Permission denied (publickey,password,keyboard-interactive).
    

    On the other hand, when I am executing the same script from aix console, it is prompting me for password and on providing it, is working fine.

    Please help...I am not able to figure out what I am missing?

    Thanks, Nishant