Prompt "Enter password for $user:" breaks application sshpass


Userlevel 3
Hello community,

just noticed that the EXOS password prompt breaks the often used method to use sshpass [1] in own scripts .

short introduction: sshpass connects to an host, locates the option "password:" and enters the submitted password after that prompt automaticly.

The problem point in EXOS is the used prompt synax:

Enter password for admin:[/code]
Before I try to modify the source code [2] of sshpass I would like to now:

Are there any plan to change the password prompt to a more "typical" or lets say "normal" prompt, like most of the other vendors do?

[1] http://sourceforge.net/projects/sshpass/files/sshpass/
[2] http://sourceforge.net/p/sshpass/code/HEAD/tree/trunk/main.c#l368

Cheers
Jan

2 replies

Userlevel 3
Great, there are already avaible patchfiles (configure.ac, main.c, sshpass.1) avaible to modify avaible sshpass source-code 🙂

[12:12:18] [596] MYHOST MYPATH $ sshpass.exe -P admin: -pMYPASSWORD ssh -q -o StrictHostKeyChecking=no -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss admin@IP sh sw

SysName:[..]
[12:12:19] [596] MYHOST MYPATH $[/code]
Userlevel 3
Update:

In EXOS 22.1 the behavior is not problematic anymore; I think due to the sshd switch in EXOS to openssh 🙂

[13:05:36] [5406] MGMT (..) ~ $ ssh admin@...
..
admin@..'s password:

[/code]

Reply