This discussion is archived
8 Replies Latest reply: Sep 7, 2011 3:19 PM by Hussein Sawwan-Oracle RSS

scp through concurrent programs errors with ssh_askpass: exec(/usr/lib/ssh/

648206 Newbie
Currently Being Moderated
Hi,

We are setting up a shell script as a concurrent program which has an scp command in it. When we run the shell script from the command prompt it works fine, but when run through the front end (concurrent program) it throws the below error:

ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory

any ideas on this?

-Ritesh
  • 1. Re: scp through concurrent programs errors with ssh_askpass: exec(/usr/lib/ssh/
    Hussein Sawwan-Oracle Employee ACE
    Currently Being Moderated
    Please post the details of the application release and OS.
    ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory

    any ideas on this?
    Is this a valid directory/file name?

    Please post the contents of the concurrent request log file here.

    Thanks,
    Hussein
  • 2. Re: scp through concurrent programs errors with ssh_askpass: exec(/usr/lib/ssh/
    648206 Newbie
    Currently Being Moderated
    ---------------------------------------------------------------------------
    Custom Application: Version : UNKNOWN

    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.

    FTP_SCRIPT module: Secure File Transfer Program
    ---------------------------------------------------------------------------

    Current system time is 07-SEP-2011 11:10:29

    ---------------------------------------------------------------------------

    Connecting to test4000.test.com...
    Sun_SSH_1.1.3, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Rhosts Authentication disabled, originating port will not be trusted.
    debug1: ssh_connect: needpriv 0
    debug1: Connecting to test4000.test.com [10.122.43.53] port 22.
    debug1: Connection established.
    debug1: identity file /home/apptest/.ssh/id_rsa type 1
    debug1: identity file /home/apptest/.ssh/id_dsa type 2
    debug1: Logging to host: test4000.test.com
    debug1: Local user: appomim Remote user: appmq
    debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.1.3
    debug1: match: Sun_SSH_1.1.3 pat Sun_SSH_1.1.*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-Sun_SSH_1.1.3
    debug1: use_engine is 'yes'
    debug1: pkcs11 engine initialized, now setting it as default for RSA, DSA, and symmetric ciphers
    debug1: pkcs11 engine initialization complete
    debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible
    Unknown code 0
    )
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 none
    debug1: kex: client->server aes128-ctr hmac-md5 none
    debug1: Peer sent proposed langtags, ctos: en-CA,en-US,es-MX,fr,fr-CA,ja-JP,ko,ko-KR,zh,zh-CN,zh-HK,zh-TW,es,ja,i-default
    debug1: Peer sent proposed langtags, stoc: en-CA,en-US,es-MX,fr,fr-CA,ja-JP,ko,ko-KR,zh,zh-CN,zh-HK,zh-TW,es,ja,i-default
    debug1: We proposed langtags, ctos: i-default
    debug1: We proposed langtags, stoc: i-default
    debug1: Negotiated lang: i-default
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    debug1: Remote: Negotiated main locale: C
    debug1: Remote: Negotiated messages locale: C
    debug1: dh_gen_key: priv key bits set: 122/256
    debug1: bits set: 1619/3191
    debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory
    debug1: Calling cleanup 0x34d60(0x0)
    Host key verification failed.
    debug1: Calling cleanup 0x34d60(0x0)
    Connection closed
    Error
    /test/apptop/testappl/xxx/11.5.0/bin/FTP_SCRIPT
    Program exited with status 1


    ---------------------------------------------------------------------------
    Executing request completion options...


    Finished executing request completion options.

    Edited by: user645203 on Sep 7, 2011 10:31 AM
  • 3. Re: scp through concurrent programs errors with ssh_askpass: exec(/usr/lib/ssh/
    648206 Newbie
    Currently Being Moderated
    Is this a valid directory/file name?


    No it is not, infact I dont see this file name any where on the server. Also, the scp command runs just fine when run from command prompt.

    -Ritesh
  • 4. Re: scp through concurrent programs errors with ssh_askpass: exec(/usr/lib/ssh/
    Srini Chavali-Oracle Oracle ACE Director
    Currently Being Moderated
    Has SSH been set up correctly between the two accounts "Local user: appomim Remote user: appmq" ?

    http://www.ece.uci.edu/~chou/ssh-key.html

    http://wikis.sun.com/display/ITOPSRO/ssh-askpass++No+such+a+file+or+directory

    HTH
    Srini
  • 5. Re: scp through concurrent programs errors with ssh_askpass: exec(/usr/lib/ssh/
    Hussein Sawwan-Oracle Employee ACE
    Currently Being Moderated
    debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible
    Most probably you need to check the .ssh/authorized_keys file on the server.

    Google "Failed to acquire GSS-API credentials " and go through the links.

    Thanks,
    Hussein
  • 6. Re: scp through concurrent programs errors with ssh_askpass: exec(/usr/lib/ssh/
    648206 Newbie
    Currently Being Moderated
    I referred the links and .ssh directory and authorized_keys have the right permissions, One more thing I would like to add, that some times the concurrent program completes succesfully and transfers the file, and some times it errors out with the error I mentioned. When I give the scp command manually from command prompt it completes fine on several executions. But when same thing is done through the concurrent program - it randomly gives the below error.

    -Ritesh
    Srini Chavali wrote:
    Has SSH been set up correctly between the two accounts "Local user: appomim Remote user: appmq" ?

    http://www.ece.uci.edu/~chou/ssh-key.html

    http://wikis.sun.com/display/ITOPSRO/ssh-askpass++No+such+a+file+or+directory

    HTH
    Srini
  • 7. Re: scp through concurrent programs errors with ssh_askpass: exec(/usr/lib/ssh/
    EBSDBA Expert
    Currently Being Moderated
    Hi,
    Host key verification failed.
    Does the destination machine changes its IP very often,
    If Yes, then you might need to consider changing the parameter

    StrictHostKeyChecking

    In /etc/ssh/ssh-config file.

    Thanks
  • 8. Re: scp through concurrent programs errors with ssh_askpass: exec(/usr/lib/ssh/
    Hussein Sawwan-Oracle Employee ACE
    Currently Being Moderated
    I referred the links and .ssh directory and authorized_keys have the right permissions
    What is the permission you have set?
    One more thing I would like to add, that some times the concurrent program completes succesfully and transfers the file, and some times it errors out with the error I mentioned.
    Enable trance and see if you get more details about the error in the log.
    When I give the scp command manually from command prompt it completes fine on several executions.
    As applmgr user?
    But when same thing is done through the concurrent program - it randomly gives the below error.
    Please enable trace as suggested above.

    Thanks,
    Hussein

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points