Problems with SFTP

rogier at tw.reverze.net rogier at tw.reverze.net
Mon Jun 26 19:40:44 EST 2006


Guys,

Once again I need some help I hope you can give me. When I try to SFTP to
any of my PCs (also running openssh) from my Xscale (ARM,
big-endian) system sftp segfaults on me. Sftp to the xscale system works
without any problems. I'm using openssl-0.9.8b (with ocf support),
linux-2.6.16 and openssh 4.3p2 on the Xscale system. One of the systems I
try to sftp to runs Openssh 3.7.1p2, with openssl 0.9.7 and linux 2.4.27.
Below is an output of what ssh -v shows. ssh, scp, and sftp to this system
works fine, it's only sftp from this system. I've tried the SNPRINTF workaround,
which doesn't seem to help. Any ideas I can try? Note, the reason it can't
create files is because those files would be created on a rom filesystem.
Modifying the user directory so it creates them on a RAM filesystem
doesn't work either though. Hope you can help.

Regards,

Rogier


Output of ssh -v :
==================
# sftp -v rogier at 192.168.0.34
Connecting to 192.168.0.34...
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Connecting to 192.168.0.34 [192.168.0.34] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
Could not create directory '/.ssh'.
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.7.1p2
debug1: match: OpenSSH_3.7.1p2 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host '192.168.0.34 (192.168.0.34)' can't be
established.
RSA key fingerprint is a0:7e:f9:7a:f0:3b:b9:f1:6b:97:38:47:85:62:f3:70.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/.ssh/known_hosts).
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/id_rsa
debug1: Trying private key: /.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: password
rogier at 192.168.0.34's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending subsystem: sftp
sftp> ls
Segmentation fault
# debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 3.7 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 0

#




More information about the openssh-unix-dev mailing list