Bug#410281: /usr/bin/scp: scp seems incompatible with version 1 ssh

2007-12-25 Thread Jasen Betts
On Mon, Dec 24, 2007 at 10:18:44PM +, Colin Watson wrote:
 Sorry for the delay in replying to this.

sorry for wasting your time, I think you're right.

 On Fri, Feb 09, 2007 at 10:37:01PM +1300, Jasen Betts wrote:
  scp from one system to another on the LAN
  fails to transfer files.
  
  remote version: Version: 1:3.4p1-1.woody.3
  
  [EMAIL PROTECTED]:/tmp$ scp junker:twmrc.j .
  [EMAIL PROTECTED]'s password: 
  protocol error: unexpected newline
  [EMAIL PROTECTED]:/tmp$ 
 
 Is it possible that you're running into the situation described in this
 OpenSSH FAQ entry?
 
   2.9 - sftp/scp fails at connection, but ssh is OK.
   
   sftp and/or scp may fail at connection time if you have shell
   initialization (.profile, .bashrc, .cshrc, etc) which produces output
   for non-interactive sessions. This output confuses the sftp/scp
   client. You can verify if your shell is doing this by executing:
   
   ssh yourhost /usr/bin/true
   
   If the above command produces any output, then you need to modify your
   shell initialization.
 

That could be it, I no longer have that machine in an operating state to 
confirm it.  you'd better close this bug. chalk another one up for
PEBKAC :-)

Bye.
   Jasen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#410281: /usr/bin/scp: scp seems incompatible with version 1 ssh

2007-12-24 Thread Colin Watson
Sorry for the delay in replying to this.

On Fri, Feb 09, 2007 at 10:37:01PM +1300, Jasen Betts wrote:
 scp from one system to another on the LAN
 fails to transfer files.
 
 remote version: Version: 1:3.4p1-1.woody.3
 
 [EMAIL PROTECTED]:/tmp$ scp junker:twmrc.j .
 [EMAIL PROTECTED]'s password: 
 protocol error: unexpected newline
 [EMAIL PROTECTED]:/tmp$ 

Is it possible that you're running into the situation described in this
OpenSSH FAQ entry?

  2.9 - sftp/scp fails at connection, but ssh is OK.
  
  sftp and/or scp may fail at connection time if you have shell
  initialization (.profile, .bashrc, .cshrc, etc) which produces output
  for non-interactive sessions. This output confuses the sftp/scp
  client. You can verify if your shell is doing this by executing:
  
  ssh yourhost /usr/bin/true
  
  If the above command produces any output, then you need to modify your
  shell initialization.

Cheers,

-- 
Colin Watson   [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#410281: /usr/bin/scp: scp seems incompatible with version 1 ssh

2007-02-09 Thread Jasen Betts
Package: ssh
Version: 1:3.8.1p1-8.sarge.6
Severity: normal
File: /usr/bin/scp


scp from one system to another on the LAN
fails to transfer files.

remote version: Version: 1:3.4p1-1.woody.3

[EMAIL PROTECTED]:/tmp$ scp junker:twmrc.j .
[EMAIL PROTECTED]'s password: 
protocol error: unexpected newline
[EMAIL PROTECTED]:/tmp$ 

- log follows 
Executing: program /usr/bin/ssh host junker, user jasen, command scp -v -f 
twmrc.j
OpenSSH_3.8.1p1 Debian-8.sarge.6, OpenSSL 0.9.7e 25 Oct 2004
debug1: Reading configuration data /home/jasen/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to junker [192.168.1.11] port 22.
debug1: Connection established.
debug1: identity file /home/jasen/.ssh/identity type -1
debug1: identity file /home/jasen/.ssh/id_rsa type 1
debug1: identity file /home/jasen/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.4p1 
Debian 1:3.4p1-1.woody.3
debug1: match: OpenSSH_3.4p1 Debian 1:3.4p1-1.woody.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.6
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(102410248192) 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 'junker' is known and matches the RSA host key.
debug1: Found key in /home/jasen/.ssh/known_hosts:17
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: /home/jasen/.ssh/identity
debug1: Offering public key: /home/jasen/.ssh/id_rsa
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Offering public key: /home/jasen/.ssh/id_dsa
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Next authentication method: password
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -f twmrc.j
protocol error: unexpected newline
Sending file modes: C0644 2494 twmrc.j
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: fd 1 clearing O_NONBLOCK
debug1: fd 2 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.2 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.13.2JB1
Locale: LANG=en_NZ, LC_CTYPE=en_NZ (charmap=ISO-8859-1)

Versions of packages ssh depends on:
ii  adduser   3.63   Add and remove users and groups
ii  debconf   1.4.30.13  Debian configuration management sy
ii  dpkg  1.10.28Package maintenance system for Deb
ii  libc6 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an
ii  libpam-modules0.76-22Pluggable Authentication Modules f
ii  libpam-runtime0.76-22Runtime support for the PAM librar
ii  libpam0g  0.76-22Pluggable Authentication Modules l
ii  libssl0.9.7   0.9.7e-3sarge4 SSL shared libraries
ii  libwrap0  7.6.dbs-8  Wietse Venema's TCP wrappers libra
ii  zlib1g1:1.2.2-4.sarge.2  compression library - runtime

-- debconf information:
  ssh/insecure_rshd:
  ssh/user_environment_tell:
* ssh/forward_warning:
* ssh/insecure_telnetd:
  ssh/new_config: true
* ssh/use_old_init_script: true
* ssh/SUID_client: true
  ssh/disable_cr_auth: false
  ssh/ssh2_keys_merged:
  ssh/protocol2_only: true
  ssh/encrypted_host_key_but_no_keygen:
* ssh/run_sshd: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]