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

  • 0
  • 1
  • Problem
  • Updated 1 year ago
  • Solved
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
Photo of Jan Steinbach

Jan Steinbach

  • 1,078 Points 1k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Jan Steinbach

Jan Steinbach

  • 1,078 Points 1k badge 2x thumb
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 $
Photo of Jan Steinbach

Jan Steinbach

  • 1,078 Points 1k badge 2x thumb
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: