Prompt "Enter password for $user:" breaks application sshpass
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-09-2016 08:57 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-24-2017 11:08 AM
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:
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:
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-09-2016 11:20 AM
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 $
[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 $
