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]

Reply via email to