Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5556

Networking and servers • Re: Raspberry Pi 4 Computer Module and SSH keys

$
0
0
2) On the RPi, edit sshd_config file to uncomment out these lines making them active:
That is not necessary. The comments are the options that are active by default.
PS C:\Users\Serf201\.ssh> ssh pi@192.168.1.15 mkdir ~/.ssh/authorized_keys
authorized_keys must be a regular file, not a directory. If you only want one key you can just copy the .pub file under the name "authorized_keys". Otherwise you have to edit the file to contain multiple public keys, one per line. (OpenSSH has a helper program ssh-copy-id, not sure about Windows.)
PS C:\Users\Serf201\.ssh> scp id_rsa.pub pi@192.168.1.15:~\.ssh\authorized_keys
Did you really type that with the slashes the wrong way? Does Windows correct that, because Linux will not.

Statistics: Posted by jojopi — Sun Jun 16, 2024 10:30 pm



Viewing all articles
Browse latest Browse all 5556

Trending Articles