Hello,
i had installed sshpass-1.06-2.aix6.1.ppc.rpm on AIX 7200-05-01.
# sshpass -p mypass ssh myuser@foo "date"
Permission denied, please try again.
Permission denied, please try again.
myuser@foo: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Debug outputsshpass -p mypass ssh -vvv myuser@foo "date"
<snip>
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /.ssh/id_ecdsa
debug3: no such identity: /.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /.ssh/id_ed25519
debug3: no such identity: /.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /.ssh/id_xmss
debug3: no such identity: /.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such device or addressdebug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
<snip>
# sum /opt/freeware/bin/sshpass
59083 65 /opt/freeware/bin/sshpass
# ls -l /dev/tty
crw-rw-rw- 1 root system 1, 0 Mar 02 16:46 /dev/tty
Using the same syntax on RHEL server to AIX works without problem.
Thanks for help.
------------------------------
Jörg Witzel
------------------------------