Hello,
I try to transfer files using sftp between the following machines :
- my pc, redhat 6.2, kernel upgraded to 2.4.2, openssh 2.5.1 p2 installed
from redhat 6.2 rpms.
- a distant machine wich is a pc running under redhat 7, with ssf 1.2.27.6
installed (the french version of ssh - complying with french
cryptography laws).
(exact version of ssf :
SSH Version SSF-1.2.27.6 [i686-unknown-linux], protocol version 1.5.
Standard version. Does not use RSAREF.)
ssh works fine in both directions. When using sftp, I must add option -1
because ssf knows only ssh protocol version '1.5'. It fails nevertheless in
both directions :
from my computer :
> sftp -v -1 peyotl.polytechnique.fr
Connecting to peyotl.polytechnique.fr...
debug: SSH args "ssh -oProtocol=1 -oForwardAgent=no -oForwardX11=no -v
peyotl.polytechnique.fr /usr/libexec/openssh/sftp-server" OpenSSH_2.5.1p2,
SSH protocols 1.5/2.0, OpenSSL 0x0090581f
debug: Reading configuration data /etc/ssh/ssh_config
debug: ssh_connect: getuid 500 geteuid 0 anon 0
debug: Connecting to peyotl.polytechnique.fr [129.104.11.32] port 22.
debug: Seeding random number generator
debug: Allocated local port 969.
debug: Connection established.
debug: identity file /home/kunzjacq/.ssh/identity type 0
debug: Remote protocol version 1.5, remote software version SSF-1.2.27.6
debug: no match: SSF-1.2.27.6
debug: Local version string SSH-1.5-OpenSSH_2.5.1p2
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Host 'peyotl.polytechnique.fr' is known and matches the RSA1 host key.
debug: Found key in /home/kunzjacq/.ssh/known_hosts:4
debug: Seeding random number generator
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
debug: Trying rhosts or /etc/hosts.equiv with RSA host authentication.
debug: Remote: Rhosts/hosts.equiv authentication refused: client user
'kunzjacq', server user 'kunzjacq', client host '217.11.168.103'.
debug: Server refused our rhosts authentication or host key.
debug: Trying RSA authentication with key '[EMAIL PROTECTED]'
debug: Received RSA challenge from server.
Enter passphrase for RSA key '[EMAIL PROTECTED]':
debug: Sending response to host key RSA challenge.
debug: Remote: RSA authentication accepted.
debug: RSA authentication accepted by server.
debug: Sending command: /usr/libexec/openssh/sftp-server
debug: Entering interactive session. /usr/libexec/openssh/sftp-server:
Command not found.
debug: Transferred: stdin 9, stdout 53, stderr 0 bytes in 0.4 seconds debug:
Bytes per second: stdin 24.4, stdout 143.6, stderr 0.0
debug: Exit status 1 Couldn't read packet: Mauvais descripteur de fichier
The command that should be executed on the remote host
(usr/libexec/openssh/sftp-server) does not exist. I have tried to give sftp
the correct argument to pass to ssh in order to change
/usr/libexec/openssh/sftp-server in 'sftpserv', which is the command which
probably must be executed remotely, but I did not manage to do so (in fact, I
looked in the binary file of sftp and I saw that the command seemed
hard-coded in it)
In the opposite direction, the same kind of problem occurs ; sftp tries to
remotely execute sftpserv, which doesn't exist on my computer :
> sftp -v bellaciao.homeip.net
Enter passphrase for RSA key '[EMAIL PROTECTED]':
Warning: Remote host denied X11 forwarding, perhaps xauth program could not
be run on the server side.
bash: sftpserv: command not found
read: Input/output error
Does anybody know a solution for that problem ?
Do I need to recompile sftp, and change the name of the remote command to be
executed ? Is it pointless to do that for some reason I ignore ?
Thanks,
Sébastien Kunz-Jacques