[Bug 1935043] [NEW] sshpass does not report file not found with -v -f, instead hangs
Tgkprog
1935043 at bugs.launchpad.net
Thu Jul 8 13:21:00 UTC 2021
Public bug reported:
Using sshpass to send a password to ssh-add
When I use a valid file path and give command :
I get the expected output
SSHPASS searching for password prompt using match "pass"
SSHPASS read: Enter passphrase for /home/tushar/.ssh/t/tgkprogOct2020:
SSHPASS detected prompt. Sending password.
SSHPASS read:
Identity added: /home/tushar/.ssh/t/tgkprogOct2020 (Tushar G Kapila
<tgkprog at gmail.com> tgkprog in github, stackoverflow, twitter, fb and
other places)
But when I use :
sshpass -v -f /home/tushar/work/pwdPathDoesNotExist -P "pass" ssh-add
~/.ssh/t/tgkprogOct2020
Where I have mistakenly put an incorrect path or file name, it does not
report that the file does not exist, should do that first, instead if
continues with issuing the command, looks for the text marker per -P and
then tries to give it the password, and then hangs, as I guess there is
no password to give and ssh-add keeps waiting. No error or warning
emited.
Output:
SSHPASS searching for password prompt using match "pass"
SSHPASS read: Enter passphrase for /home/tushar/.ssh/t/tgkprogOct2020:
SSHPASS detected prompt. Sending password.
* After this command does not complete, hangs here
** Affects: apt (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "Terminal screen with commands & output as described in bug description"
https://bugs.launchpad.net/bugs/1935043/+attachment/5509903/+files/Screenshot%20from%202021-07-08%2018-47-47.png
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1935043
Title:
sshpass does not report file not found with -v -f, instead hangs
Status in apt package in Ubuntu:
New
Bug description:
Using sshpass to send a password to ssh-add
When I use a valid file path and give command :
I get the expected output
SSHPASS searching for password prompt using match "pass"
SSHPASS read: Enter passphrase for /home/tushar/.ssh/t/tgkprogOct2020:
SSHPASS detected prompt. Sending password.
SSHPASS read:
Identity added: /home/tushar/.ssh/t/tgkprogOct2020 (Tushar G Kapila
<tgkprog at gmail.com> tgkprog in github, stackoverflow, twitter, fb and
other places)
But when I use :
sshpass -v -f /home/tushar/work/pwdPathDoesNotExist -P "pass" ssh-
add ~/.ssh/t/tgkprogOct2020
Where I have mistakenly put an incorrect path or file name, it does
not report that the file does not exist, should do that first, instead
if continues with issuing the command, looks for the text marker per
-P and then tries to give it the password, and then hangs, as I guess
there is no password to give and ssh-add keeps waiting. No error or
warning emited.
Output:
SSHPASS searching for password prompt using match "pass"
SSHPASS read: Enter passphrase for /home/tushar/.ssh/t/tgkprogOct2020:
SSHPASS detected prompt. Sending password.
* After this command does not complete, hangs here
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1935043/+subscriptions
More information about the foundations-bugs
mailing list