freebsd-ports/security/sshpass/files/patch-sshpass.1
Thomas Zander 2d040a35a3 Backport patch from upstream trunk for 'hangs forever' issue
On http://sourceforge.net/p/sshpass/bugs/12/ the issue is explained:
Doing a "sshpass -p password ssh vmfreebsd10-32 -l account ls" hangs
forever.  The reason is that in this combination the prompt for the
password looks like this: "Password for account@vmfreebsd10-32:" and
sshpass checks the password against the string "assword:", so there
is no match.

This is fixed upstream in trunk, but no release has been created yet.
Import the patch into the ports tree until the next release.

PR:		204819
Submitted by:	andrey@bsdnir.info
Approved by:	maintainer timeout
2016-01-02 11:59:59 +00:00

22 lines
976 B
Groff

--- sshpass.1.orig 2011-08-06 06:58:25 UTC
+++ sshpass.1
@@ -1,4 +1,4 @@
-.TH SSHPASS 1 "August 6, 2011" "Lingnu Open Source Consulting" "Sshpass User Manual"
+.TH SSHPASS 1 "April 24, 2015" "Lingnu Open Source Consulting" "Sshpass User Manual"
.\" Please adjust this date whenever revising the manpage.
.SH NAME
sshpass \- noninteractive ssh password provider
@@ -37,6 +37,13 @@ password is read from the open file desc
.TP
.B \-e
The password is taken from the environment variable "SSHPASS".
+.TP
+.B \-P
+Set the password prompt. Sshpass searched for this prompt in the program's
+output to the TTY as an indication when to send the password. By default
+sshpass looks for the string "assword:" (which matches both "Password:" and
+"password:"). If your client's prompt does not fall under either of these,
+you can override the default with this option.
.SH SECURITY CONSIDERATIONS
.P
First and foremost, users of sshpass should realize that ssh's insistance on