Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: Ssh & scp

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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 #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

  2. #2
    Just Joined!
    Join Date
    Aug 2010
    Seem to be an old know bug/problem:
    scp [Archive] -

    In general, the suggestion is: Remove the echo if you can.

  3. #3
    thanks for response, will leave as is.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts