Hi there,

Summary:  sftp does not work with the server I use to host some stuff.
It can successfully connect to my own machine.  The error I get is
"bash: sftp: command not found" *after* I log in successfully.

Details:

OS: Linux (no distribution), kernel 2.4.2
ssh: OpenSSH_2.5.2p2, SSH protocols 1.5/2.0, OpenSSL 0x0090601

Target System OS: Linux optimal.optimalweb.com 2.0.36
Target System ssh: SSH Version 1.2.27 [i686-unknown-linux], protocol
version 1.5.

First, I connect to my own system (proof of concept):

bash-2.04$ sftp localhost
Connecting to localhost...
michael@localhost's password:
sftp>

Now I go to my target system (ssh works fine):

bash-2.04$ sftp -oProtocol=1 [EMAIL PROTECTED]
Connecting to jastram.de...
[EMAIL PROTECTED]'s password:
bash: sftp: command not found
Connection closed

And here the same, this time with debugging on:

bash-2.04$ sftp -oProtocol=1 -v [EMAIL PROTECTED]
Connecting to jastram.de...
debug1: SSH args "ssh -o Protocol=1 -l jastram -v jastram.de -s
-oForwardX11=no -oForwardAgent=no -oProtocol=2 sftp"
OpenSSH_2.5.2p2, SSH protocols 1.5/2.0, OpenSSL 0x0090601f
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: ssh_connect: getuid 1000 geteuid 0 anon 1
debug1: Connecting to jastram.de [216.71.145.230] port 22.
debug1: Connection established.
debug1: unknown identity file /home/michael/.ssh/identity
debug1: identity file /home/michael/.ssh/identity type -1
debug1: Remote protocol version 1.5, remote software version 1.2.27
debug1: no match: 1.2.27
debug1: Local version string SSH-1.5-OpenSSH_2.5.2p2
debug1: Waiting for server public key.
debug1: Received server public key (768 bits) and host key (1024 bits).
debug1: Host 'jastram.de' is known and matches the RSA1 host key.
debug1: Found key in /home/michael/.ssh/known_hosts:1
debug1: Encryption type: 3des
debug1: Sent encrypted session key.
debug1: Installing crc compensation attack detector.
debug1: Received encrypted confirmation.
debug1: Trying rhosts or /etc/hosts.equiv with RSA host authentication.
debug1: Server refused our rhosts authentication or host key.
debug1: Doing password authentication.
[EMAIL PROTECTED]'s password:
debug1: Sending command: sftp
debug1: Entering interactive session.
bash: sftp: command not found
debug1: Transferred: stdin 9, stdout 0, stderr 30 bytes in 0.6 seconds
debug1: Bytes per second: stdin 14.2, stdout 0.0, stderr 47.3
debug1: Exit status 127
Connection closed

My sftp is located at /usr/bin/sftp

It's getting stranger yet!  I noticed that I can substitute -oProtocol=1
with -1.  This doesn't work either, but I get a different error message:

bash-2.04$ /usr/bin/sftp -1 [EMAIL PROTECTED]
Connecting to jastram.de...
[EMAIL PROTECTED]'s password:
bash: /usr/libexec/sftp-server: No such file or directory
Connection closed

My sftp-server is exactly located where indicated above.  Switching
debugging on doesn't add any insight, except that the exit code is 126.

Any ideas...?  Thanks!

- Michael
([EMAIL PROTECTED])


Reply via email to