scp fails after sending command: scp -v -t

phorminx at web.de phorminx at web.de
Sun Sep 4 04:03:31 EST 2011


Does this list not like plain text attachments?
Well, here is my email once more with debug output included directly.

----------------------------------------------------------
I encounter a strange problem with scp / sftp:

I travel quite a bit. Normally I never have had any problems using
ssh / scp / sftp to connect from my laptop to my computer at home /
at work. Currently (for the next 6 months, too long to ignore it)
I'll stay in a place where scp / sftp seem to fail, while as usual I
have no problems to establish an interactive ssh connection to these
remote computers. Recently, I did not change any configuration
neither on my laptop nor on the remote computers I want to connect
to. In particular, I also double-checked that

  http://www.openssh.org/faq.html#2.9

does not apply, i.e.,

  $ssh myhost /bin/true

does not give any spurious output.

More specifically, I also tried scp -v together with sshd -d
on the server side. The client hangs after issuing

  debug1: Sending command: scp -v -t ~/foo

At this stage, the server says

  debug1: server_input_channel_open: confirm session

The complete output of scp -v and sshd -d is attached below.

My problem appears to be similar to

  http://lists.mindrot.org/pipermail/openssh-unix-dev/2008-March/026276.html

The only difference might be that the guy of the previous thread
stayed (and suffered) in his hotel not very long so that apparently
his case was never resolved properly. I cannot ignore this problem
for the next six months. So any help will be appreciated!

$ scp -v scratch phorminx at foo.bar.com:~/foo
Executing: program /usr/bin/ssh host foo.bar.com, user phorminx, command scp -v -t ~/foo
OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to foo.bar.com [123.456.78.901] port 22.
debug1: Connection established.
debug1: identity file /home/phorminx/.ssh/identity type -1
debug1: identity file /home/phorminx/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-1024
debug1: identity file /home/phorminx/.ssh/id_dsa type 2
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7p1 Debian-8ubuntu3
debug1: match: OpenSSH_4.7p1 Debian-8ubuntu3 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu7
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr 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 'foo.bar.com' is known and matches the RSA host key.
debug1: Found key in /home/phorminx/.ssh/known_hosts:13
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
debug1: Next authentication method: publickey
debug1: Offering public key: /home/phorminx/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LC_COLLATE = C
debug1: Sending env LANG = en_US.ISO-8859-15
debug1: Sending env LC_TIME = en_GB.utf8
debug1: Sending command: scp -v -t ~/foo
^Cdebug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Killed by signal 2.

# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_4.7p1 Debian-8ubuntu3
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8
debug1: inetd sockets after dupping: 3, 3
Connection from 98.765.432.10 port 46213
debug1: Client protocol version 2.0; client software version OpenSSH_5.3p1 Debian-3ubuntu7
debug1: match: OpenSSH_5.3p1 Debian-3ubuntu7 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu3
debug1: permanently_set_uid: 112/65534
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user phorminx service ssh-connection method none
debug1: attempt 0 failures 0
debug1: userauth-request for user phorminx service ssh-connection method publickey
debug1: attempt 1 failures 1
debug1: test whether pkalg/pkblob are acceptable
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-1024
debug1: temporarily_use_uid: 1000/1000 (e=0/0)
debug1: trying public key file /home/phorminx/.ssh/authorized_keys
debug1: matching key found: file /home/phorminx/.ssh/authorized_keys, line 3
Found matching RSA key:
debug1: restore_uid: 0/0
Postponed publickey for phorminx from 98.765.432.10 port 46213 ssh2
debug1: userauth-request for user phorminx service ssh-connection method publickey
debug1: attempt 2 failures 1
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-1024
debug1: temporarily_use_uid: 1000/1000 (e=0/0)
debug1: trying public key file /home/phorminx/.ssh/authorized_keys
debug1: matching key found: file /home/phorminx/.ssh/authorized_keys, line 3
Found matching RSA key: a5:d8:80:5e:f5:83:c5:eb:d0:38:13:d8:d4:87:de:cd
debug1: restore_uid: 0/0
debug1: ssh_rsa_verify: signature correct
Accepted publickey for phorminx from 98.765.432.10 port 46213 ssh2
debug1: monitor_child_preauth: phorminx has been authenticated by privileged process
debug1: permanently_set_uid: 1000/1000
debug1: SELinux support disabled
debug1: Entering interactive session for SSH2.
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype session rchan 0 win 2097152 max 32768
debug1: input_session_request
debug1: channel 0: new [server-session]
debug1: session_new: init
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session

debug1: do_cleanup


___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar


More information about the openssh-unix-dev mailing list