Bug#244924: ssh: scp only prints file modes and exits with status 1
Package: openssh-client
Version: 1:6.6p1-6
Followup-For: Bug #244924
Dear Maintainer,
I'm seeing the exact behavior described in this bug, but the fix
described here doesn't work for me.
I installed debian testing from the weekly cd image last week.
I'm trying to copy a file to a remote host via scp. It just prints
the file mode and size and exits with status 1. Actually, scp is
still running in the background, on both local and remote machines,
though eventually they exit with a 'Write failed: Broken pipe'
message. Also, the file is created remotely, but is empty. I am
copying to a fresh CoreOS instance on ec2. Truncating .bashrc and
.bash_profile on the remote side doesn't help. I also tried copying
to an old ubuntu lucid instance (to which I've transferred data by scp
successfully from debian stable in the past) with same results.
This is really a showstopper for me. Any suggestions?
deb8 $ scp -v Dockerfile cw1:.
Executing: program /usr/bin/ssh host cw1, user (unspecified), command scp -v -t .
OpenSSH_6.6.1, OpenSSL 1.0.1i-dev xx XXX xxxx
debug1: Reading configuration data /home/altaurog/.ssh/config
debug1: /home/altaurog/.ssh/config line 26: Applying options for cw1
debug1: /home/altaurog/.ssh/config line 50: Applying options for cw*
debug1: /home/altaurog/.ssh/config line 56: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Hostname has changed; re-reading configuration
debug1: Reading configuration data /home/altaurog/.ssh/config
debug1: /home/altaurog/.ssh/config line 56: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 54.210.152.198 [54.210.152.198] port 22.
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug1: identity file /home/altaurog/.ssh/ubm.pem type -1
debug1: identity file /home/altaurog/.ssh/ubm.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Debian-6
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6p1-hpn14v4
debug1: match: OpenSSH_6.6p1-hpn14v4 pat OpenSSH_6.5*,OpenSSH_6.6* compat 0x14000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<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: Server host key: ED25519 df:ba:b2:31:e5:43:b8:a8:62:09:89:8f:fe:ed:9b:f6
debug1: Host '54.210.152.198' is known and matches the ED25519 host key.
debug1: Found key in /home/altaurog/.ssh/known_hosts:62
debug1: ssh_ed25519_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
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: /home/altaurog/.ssh/ubm.pem
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Authenticated to 54.210.152.198 ([54.210.152.198]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: SSH2_MSG_KEXINIT received
debug1: SSH2_MSG_KEXINIT sent
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<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: Server host key: ED25519 df:ba:b2:31:e5:43:b8:a8:62:09:89:8f:fe:ed:9b:f6
debug1: Host '54.210.152.198' is known and matches the ED25519 host key.
debug1: Found key in /home/altaurog/.ssh/known_hosts:62
debug1: ssh_ed25519_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
debug1: tty_make_modes: no fd or tio
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: scp -v -t .
Sending file modes: C0640 1324 Dockerfile
C0640 1324 Dockerfile
deb8 $ echo $?
1
deb8 $ ps -F `pgrep scp`
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
altaurog 2883 2756 0 5485 4672 1 10:43 pts/1 00:00:00 -/bin/bash
altaurog 14790 1 0 11058 3208 4 15:46 pts/1 00:00:00 /usr/bin/ssh -x -oForwardAgent=no -oPermitLocalCommand=no -oClearAllForwardings=yes -- cw1 scp -t .
altaurog 14793 2883 0 4771 1284 7 15:46 pts/1 00:00:00 ps -F
deb8 $ ssh cw1 'ls -lA'
total 4
-rw------- 1 core core 272 Aug 4 13:35 .bash_history
-rw-r--r-- 1 core core 0 Aug 4 13:34 .bash_profile
-rw-r--r-- 1 core core 0 Aug 4 13:34 .bashrc
drwx------ 1 core core 64 Aug 4 11:30 .ssh
-rw-r----- 1 core core 0 Aug 4 13:35 Dockerfile
deb8 $ ssh cw 'ps -Fu core'
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
core 6671 6669 0 16004 3236 0 13:50 ? 00:00:00 sshd: core@pts/0
core 6676 6671 0 2135 1632 0 13:50 pts/0 00:00:00 scp -t .
core 6679 6677 0 16004 3060 0 13:50 ? 00:00:00 sshd: core@pts/1
core 6684 6679 0 3288 1988 0 13:50 pts/1 00:00:00 ps -Fu core
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages openssh-client depends on:
ii adduser 3.113+nmu3
ii dpkg 1.17.10
ii libc6 2.19-7
ii libedit2 3.1-20140620-1
ii libgssapi-krb5-2 1.12.1+dfsg-5
ii libselinux1 2.3-1
ii libssl1.0.0 1.0.1h-3
ii passwd 1:4.2-2
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages openssh-client recommends:
ii xauth 1:1.0.9-1
Versions of packages openssh-client suggests:
pn keychain <none>
pn libpam-ssh <none>
pn monkeysphere <none>
pn ssh-askpass <none>
-- no debconf information
Reply to: