Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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



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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2021-04-22 03:09 GMT
Find Nodes?
    Voting Booth?

    No recent polls found