[3874] in testers

home help back first fref pref prev next nref lref last post

Re: sgi 8.2.9: scp/sshd

daemon@ATHENA.MIT.EDU (Joseph Sokol-Margolis)
Sat Aug 8 17:20:39 1998

To: Greg Hudson <ghudson@MIT.EDU>
Cc: Camilla R Fox <cfox@MIT.EDU>, testers@MIT.EDU
In-Reply-To: Your message of "Sat, 08 Aug 1998 16:31:49 EDT."
             <199808082031.QAA16865@snorklewacker.mit.edu> 
Date: Sat, 08 Aug 1998 17:20:28 EDT
From: Joseph Sokol-Margolis <seph@MIT.EDU>

> > It starts sourcing my dotfiles and stuff, rather than just giving me
> > a connection and copying the file.  I can copy the file to another
> > host (a linux box without a hacked sshd) just fine
>
> I don't know how scp is supposed to avoid spurious output from one's
> dotfiles.  I think this has been a long-standing problem with scp and
> rcp, and I don't know of any release-level workaround.

scp can't deal with output from you dotfiles. You can put all the
echo statements inside something that tests for an interactive
environment, or you can use ssh to transfer files directly.
ie: cat local_file | ssh host "cat - >remote_file"

seph

home help back first fref pref prev next nref lref last post