sftp problem

mouring at etoh.eviladmin.org mouring at etoh.eviladmin.org
Wed May 9 04:00:24 EST 2001


Check your sshd_config  'Subsystem sftp ..' line and ensure that your
sftp-server exists in that location.

- Ben

On Tue, 8 May 2001, Painter, Jeff (ZoomTown) wrote:

> I am trying to resolve an issue with SSH2 version 2.5.2p2 on Solaris 2.6.
> SSH2, SSH1 and SCP all work fine in and out.  The problem is with SFTP.  I
> can SFTP out, but not in.  I can't SFTP into itself.  After I issue the
> command, I get a password prompt.  After I give the password, the connection
> closes with an Exit Status 127.  There are 3 other system configure the same
> and everything is functional.  SFTP going in has been a problem since the
> first release including SFTP. I included the output from debug.
>
> Thanks-JWP
>
> $ sftp -v jpaint at ETwebuatbu
> Connecting to ETwebuatbu...
> debug1: SSH args "ssh -l jpaint -v ETwebuatbu -s -oForwardX11=no
> -oForwardAgent=
> no -oProtocol=2 sftp"
> OpenSSH_2.5.2p2, SSH protocols 1.5/2.0, OpenSSL 0x0090600f
> debug1: Seeded RNG with 36 bytes from programs
> debug1: Seeded RNG with 3 bytes from system calls
> debug1: Rhosts Authentication disabled, originating port will not be
> trusted.
> debug1: ssh_connect: getuid 1009 geteuid 0 anon 1
> debug1: Connecting to ETwebuatbu [10.200.10.5] port 23.
> debug1: Connection established.
> debug1: unknown identity file /export/home/jpaint/.ssh/id_rsa
> debug1: identity file /export/home/jpaint/.ssh/id_rsa type -1
> debug1: unknown identity file /export/home/jpaint/.ssh/id_dsa
> debug1: identity file /export/home/jpaint/.ssh/id_dsa type -1
> debug1: Remote protocol version 1.99, remote software version
> OpenSSH_2.5.2p2
> debug1: match: OpenSSH_2.5.2p2 pat ^OpenSSH
> Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_2.5.2p2
> debug1: send KEXINIT
> debug1: done
> debug1: wait KEXINIT
> debug1: got kexinit:
> diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sh
> a1
> debug1: got kexinit: ssh-dss
> debug1: got kexinit:
> aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192
> -cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,rijndael-cbc
> @lys
> ator.liu.se
> debug1: got kexinit:
> aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192
> -cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,rijndael-cbc
> @lys
> ator.liu.se
> debug1: got kexinit:
> hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 at openssh.co
> m,hmac-sha1-96,hmac-md5-96
> debug1: got kexinit:
> hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 at openssh.co
> m,hmac-sha1-96,hmac-md5-96
> debug1: got kexinit: none,zlib
> debug1: got kexinit: none,zlib
> debug1: got kexinit:
> debug1: got kexinit:
> debug1: first kex follow: 0
> debug1: reserved: 0
> debug1: done
> debug1: kex: server->client aes128-cbc hmac-md5 none
> debug1: kex: client->server aes128-cbc hmac-md5 none
> debug1: Sending SSH2_MSG_KEX_DH_GEX_REQUEST.
> debug1: Wait SSH2_MSG_KEX_DH_GEX_GROUP.
> debug1: Got SSH2_MSG_KEX_DH_GEX_GROUP.
> debug1: dh_gen_key: priv key bits set: 123/256
> debug1: bits set: 1030/2049
> debug1: Sending SSH2_MSG_KEX_DH_GEX_INIT.
> debug1: Wait SSH2_MSG_KEX_DH_GEX_REPLY.
> debug1: Got SSH2_MSG_KEXDH_REPLY.
> debug1: Host 'etwebuatbu' is known and matches the DSA host key.
> debug1: Found key in /export/home/jpaint/.ssh/known_hosts2:3
> debug1: bits set: 1030/2049
> debug1: len 55 datafellows 0
> debug1: ssh_dss_verify: signature correct
> debug1: Wait SSH2_MSG_NEWKEYS.
> debug1: GOT SSH2_MSG_NEWKEYS.
> debug1: send SSH2_MSG_NEWKEYS.
> debug1: done: send SSH2_MSG_NEWKEYS.
> debug1: done: KEX2.
> debug1: send SSH2_MSG_SERVICE_REQUEST
> debug1: service_accept: ssh-userauth
> debug1: got SSH2_MSG_SERVICE_ACCEPT
> debug1: authentications that can continue: publickey,password
> debug1: next auth method to try is publickey
> debug1: try privkey: /export/home/jpaint/.ssh/id_rsa
> debug1: try privkey: /export/home/jpaint/.ssh/id_dsa
> debug1: next auth method to try is password
> jpaint at etwebuatbu's password:
> debug1: ssh-userauth2 successful: method password
> debug1: fd 7 setting O_NONBLOCK
> debug1: fd 8 IS O_NONBLOCK
> debug1: channel 0: new [client-session]
> debug1: send channel open 0
> debug1: Entering interactive session.
> debug1: client_init id 0 arg 0
> debug1: Sending subsystem: sftp
> debug1: channel 0: open confirm rwindow 0 rmax 16384
> debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
> debug1: channel 0: rcvd eof
> debug1: channel 0: output open -> drain
> debug1: channel 0: rcvd close
> debug1: channel 0: input open -> closed
> debug1: channel 0: close_read
> debug1: channel 0: obuf empty
> debug1: channel 0: output drain -> closed
> debug1: channel 0: close_write
> debug1: channel 0: send close
> debug1: channel 0: is dead
> debug1: channel_free: channel 0: status: The following connections are open:
>   #0 client-session (t4 r0 i8/0 o128/0 fd -1/-1)
>
> debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds
> debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
> debug1: Exit status 127
> debug1: writing PRNG seed to file /export/home/jpaint/.ssh/prng_seed
> Connection closed
>




More information about the openssh-unix-dev mailing list