Bug#410281: /usr/bin/scp: scp seems incompatible with version 1 ssh
On Mon, Dec 24, 2007 at 10:18:44PM +0000, 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
> >
> > 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.
>
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
Reply to: