[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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
> 
> jasen@gonzo:/tmp$ scp junker:twmrc.j .
> jasen@junker's password: 
> protocol error: unexpected <newline>
> jasen@gonzo:/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                                       [cjwatson@debian.org]



Reply to: