scott.ferguson.clug at gmail.com
Thu Sep 7 10:11:25 UTC 2017
On 07/09/17 19:47, Bryan Kilgallin (iiNet) via linux wrote:
> Unfortunately no, Scott:
>> scott at aspire ~ $ ssh-copy-id testing.sunnyside
First run ssh-keygen to create a key on $tower
You must replace $tower with the actual name of your tower pc.
You must replace $laptop with the actual name of your laptop OR it's IP
> /usr/bin/ssh-copy-id: ERROR: failed to open ID file
> Complaining that there was no such ".pub" file in my desktop user
First you need to generate a key! See my previous comments...
> If you wish to send a file from $tower to $laptop:-
> 'Ideally' on $tower you should generate an ssh key using "ssh-keygen"
> and then authenticate that key on $laptop using "ssh-copy-id"
"man ssh-keygen" if you don't understand how to generate a key or can't
find a suitable tutorial on the internet (why reinvent the wheel?).
Notes: if you use the ssh or scp command without specifying a user, the
command assumes you mean run as the current user. i.e. if you are logged
in as "brian" @tower and "scp text.txt laptop:/$somewhere", the command
run is the equivalent of "scp text.txt brian at laptop:/$somewhere" (so you
better have a user with the same name on $laptop).
When you've run ssh-keygen on $tower you will have a directory created
in ~ called ~/.ssh
typical contents on $tower:/home/brian/.ssh is:-
authorized_keys config id_rsa.pub id_rsa known_hosts
typical contents on $laptop:/home/brian/.ssh when you've installed ssh
and run ssh-copy-id on $tower:-
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?
Q: Should I trim down the quoted part of an email to which I'm reply
More information about the linux