-
Ssh & scp
Today I had an issue using SSH and SCP.
I was able to use ssh to log into a machine but could not use scp to remotely copy a file from it. In the end I discovered that the scp stopped because I had echo statements in my .bashrc
Is there anything I can do to allow these statements to print, or an explanation as to why they cause scp to fail?
remote machine:
Linux 2.6.25.20-0.5-default #1 SMP 2009-08-14 01:48:11 +0200 i686 i686 i386 GNU/Linux
OpenSSH_5.0p1, OpenSSL 0.9.8g 19 Oct 2007
Login Machine
Linux 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
OpenSSH_5.1p1 Debian-6ubuntu2, OpenSSL 0.9.8g 19 Oct 2007
-
Seem to be an old know bug/problem:
http://www.linuxforums.org/forum/lin...ds-bashrc.html
scp [Archive] - FedoraForum.org
In general, the suggestion is: Remove the echo if you can.
-
thanks for response, will leave as is.