bugzilla-daemon at bugzilla.mindrot.org
2010-Nov-08 10:24 UTC
[Bug 1835] New: sftp should fallback to sshv1 if server doesn't support sshv2
https://bugzilla.mindrot.org/show_bug.cgi?id=1835
Summary: sftp should fallback to sshv1 if server doesn't
support sshv2
Product: Portable OpenSSH
Version: 5.6p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sftp
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: jchadima at redhat.com
In the case when the server supports protocol 1 only and the client
supports 2,1 ssh switches automatically to protocol 1, sftp exits with:
"Protocol major versions differ: 2 vs. 1"
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Nov-08 11:12 UTC
[Bug 1835] sftp should fallback to sshv1 if server doesn't support sshv2
https://bugzilla.mindrot.org/show_bug.cgi?id=1835
Darren Tucker <dtucker at zip.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dtucker at zip.com.au
--- Comment #1 from Darren Tucker <dtucker at zip.com.au> 2010-11-08
22:12:40 EST ---
I can't reproduce: as long as the client knows the path to sftp-server
it works for me:
$ sftp -v -s /usr/local/libexec/sftp-server -o protocol=2,1 localhost
OpenSSH_5.6p1, OpenSSL 0.9.7l 28 Sep 2006
[...]
debug1: Remote protocol version 1.5, remote software version
OpenSSH_5.6
debug1: match: OpenSSH_5.6 pat OpenSSH*
debug1: Local version string SSH-1.5-OpenSSH_5.6
[...]
sftp> version
SFTP protocol version 3
If the client doesn't have a path for sftp-server and is not given the
"-1" option then it doesn't work for a different reason: SSHv1
does not
have subsystems so attempting to invoke the "sftp" command via SSHv1
invokes the client rather than the server.
Could you please reproduce with client-side debugging enabled (sftp
-vvv)?
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Nov-08 12:19 UTC
[Bug 1835] sftp should fallback to sshv1 if server doesn't support sshv2
https://bugzilla.mindrot.org/show_bug.cgi?id=1835
jchadima at redhat.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jchadima at redhat.com
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from jchadima at redhat.com 2010-11-08 23:19:54 EST ---
Sorry, I've tested old version of openssh.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Nov-08 12:28 UTC
[Bug 1835] sftp should fallback to sshv1 if server doesn't support sshv2
https://bugzilla.mindrot.org/show_bug.cgi?id=1835
jchadima at redhat.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #3 from jchadima at redhat.com 2010-11-08 23:28:00 EST ---
Caused by the absent -s parameter
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
Reasonably Related Threads
- Need help in copying public key for a new user to EC2
- [Bug 1637] New: Change the context when starting internal-sftp
- [Bug 1750] New: Sftp hangs if stderr is used.
- [Bug 2044] New: error message is printed for SSHv1 when ssh is forced to allocate a pseudo-tty even when it does not have a one
- Centos security sshv1