[clug] scp

Tony Lewis tony at lewistribe.com
Thu Sep 7 02:24:23 UTC 2017


On 07/09/17 12:04, Bryan Kilgallin (iiNet) via linux wrote:
> Thanks, Scott:
>
>> scott at aspire ~ $ ping -c1 testing.sunnyside
>> PING testing.sunnyside (192.168.0.4) 56(84) bytes of data.
>> 64 bytes from testing.sunnyside (192.168.0.4): 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
>
> From my tower PC to the laptop, all of these tests passed.
>
>> scott at aspire ~ $ grep testing /etc/hosts
>> 192.168.0.4     testing.sunnyside testing
>
> Unfortunately the hosts lists on both tower PC and laptop--did not 
> contain the laptop's hostname! Rather, on the laptop, hosts has the 
> following line.
> 127.0.1.1    clug01
> Which latter differs from the entry in the following file.
> /etc/hostname
>
That's probably still OK.  If the ping worked, it's getting the hostname 
from your router, most probably.

Keep going with the commands from Scott, but note that the ssh-copy-id 
command is not necessary.  It will save you from having to enter your 
password on subsequent logins.

Also add '-vvv' the the scp command, so it gives you (very very) verbose 
output.  Taking Scott's example, make it:

	scp -vvv text.txt testing.sunnyside:/home/scott

Tony




More information about the linux mailing list