[clug] scp

Scott Ferguson scott.ferguson.clug at gmail.com
Thu Sep 7 01:08:28 UTC 2017

On 07/09/17 00:44, Bryan Kilgallin (iiNet) via linux wrote:
> Connected to my router are desktop and laptop computers. In the desktop
> user's home directory is a test text file. I couldn't copy it to a
> similar location on the laptop! I don't understand the failure!

One way to do what I (have to) guess what you are trying to do (assuming
this is Linux):-

scott at aspire ~ $ whoami;pwd
scott at aspire ~ $ date +%d%m%Y-%H%M > text.txt
scott at aspire ~ $ cat text.txt
scott at aspire ~ $ ping -c1 testing.sunnyside
PING testing.sunnyside ( 56(84) bytes of data.
64 bytes from testing.sunnyside ( icmp_seq=1 ttl=64
time=0.561 ms

--- testing.sunnyside ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.561/0.561/0.561/0.000 ms
scott at aspire ~ $ grep testing /etc/hosts     testing.sunnyside testing
scott at aspire ~ $ ssh-copy-id testing.sunnyside
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed:
The authenticity of host 'testing.sunnyside (' can't be
ECDSA key fingerprint is SHA256:7hq6r1rAtp21F02ezejaoJ/mBfGSo4QJ9dBTBR3NgZY.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to
filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you
are prompted now it is to install the new keys
scott at testing.sunnyside's password:

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 'testing.sunnyside'"
and check to make sure that only the key(s) you wanted were added.

scott at aspire ~ $ scp text.txt testing.sunnyside:/home/scott
     100%   14     3.9KB/s   00:00
scott at aspire ~ $ ssh testing.sunnyside "cat /home/scott/text.txt"

Kind regards

    A: Because we read from top to bottom, left to right.
    Q: Why should I start my reply below the quoted text?

    A: Because it messes up the order in which people normally read text.
    Q: Why is top-posting such a bad thing?

    A: The lost context.
    Q: What makes top-posted replies harder to read than bottom-posted?

    A: Yes.
    Q: Should I trim down the quoted part of an email to which I'm reply


More information about the linux mailing list