http://www.perlmonks.org?node_id=11122193


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