[SLUG] {Fraud?} {Disarmed} SFTP confusion

From: Keith Lelacheur (themercuryman@gmail.com)
Date: Thu Mar 09 2006 - 09:52:58 EST


About 6 months ago I asked a question to the group about SFTP and expect and
really got a lot of helpful information and was able to solve my problem. I
now find I need help again and I am not sure why. My expect script with the
embedded sftp was working fine until today. I have determined the problem
does not lie with the expect portion but with the sftp connection itself. I
tried to manually connect to the remote sftp server and here is the
transcript with anonmyzed hosts and usernames. The basic problem is that
after I authenticate, I do not get an sftp prompt to allow any interactive
commands. Any help would be greatly appreciated. Oh yeah, this is a fairly
generic mandrake 10.1 system.

[root@LNXPROCSVR radreports]# sftp -v sftpuser@10.10.10.10
Connecting to 10.10.10.10...
OpenSSH_4.3p1, OpenSSL 0.9.7e 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 10.10.10.10 [10.10.10.10] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version 0
debug1: no match: 0
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
debug1: Host '10.10.10.10' is known and matches the DSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_dss_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
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Offering public key: /root/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 435
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_dsa':
debug1: read PEM private key done: type DSA
Authenticated with partial success.
debug1: Authentications that can continue: password
debug1: Next authentication method: password
sftpuser@10.10.10.10's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending subsystem: sftp

"The system stops doing anything and I have to press CRTL-C at this point."

debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Killed by signal 15.

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:48:02 EDT