cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

SchmuFoo
Contributor
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:
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 2

SchmuFoo
Contributor
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:


SchmuFoo
Contributor
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 $

GTM-P2G8KFN