Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^13: [OT] A New Everything ?

by hippo (Chancellor)
on Sep 25, 2020 at 08:45 UTC ( #11122193=note: print w/replies, xml ) Need Help??


in reply to Re^12: [OT] A New Everything ?
in thread [OT] A New Everything ?

root@third:/home/wilma/.ssh# echo id_rsa.pub >>authorized_keys

The authorized_keys file is not a list of filenames; it is a list of keys themselves. At this point you should just have done something akin to

$ cat id_rsa.pub > authorized_keys

HTH.


🦛

Replies are listed 'Best First'.
Re^14: [OT] A New Everything ?
by soonix (Canon) on Sep 25, 2020 at 11:08 UTC
    better >> than > to avoid clobbering. Alternatively ssh-add might be available.
      better >> than > to avoid clobbering.

      Ordinarily yes. In this case however, the file is apparently full of nonsense so clobbering is actually more desirable.

      Alternatively ssh-add might be available.

      ssh-add has no effect on the contents of the authorized_keys file. It is only useful for adding local keys to a local agent.


      🦛

        🤦 Yes, I misread ssh-add as a local variant of ssh-copy-id

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11122193]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2020-11-27 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?