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?



2 replies

Userlevel 3
Great, there are already avaible patchfiles (, 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

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

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: