howto:sshkey
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
howto:sshkey [2025/05/12 21:44] – created justip6 | howto:sshkey [2025/05/12 21:51] (current) – [Ubuntu] justip6 | ||
---|---|---|---|
Line 15: | Line 15: | ||
The *.pub file needs to be appended to the ~/ | The *.pub file needs to be appended to the ~/ | ||
<code bash> | <code bash> | ||
+ | # Your pub key's filename may differ depending on whether it was ed25519 (id_ed25519.pub), | ||
[user@localhost ~]$ scp ~/ | [user@localhost ~]$ scp ~/ | ||
Enter password for user@remotehost: | Enter password for user@remotehost: | ||
[user@localhost ~]$ ssh user@remotehost | [user@localhost ~]$ ssh user@remotehost | ||
Enter Password | Enter Password | ||
- | # That's the last time you'll be entering your password! | ||
[user@remotehost ~]$ cd .ssh | [user@remotehost ~]$ cd .ssh | ||
[user@remotehost .ssh]$ cat my_id.pub >> authorized_keys | [user@remotehost .ssh]$ cat my_id.pub >> authorized_keys | ||
[user@remotehost .ssh]$ rm my_id.pub | [user@remotehost .ssh]$ rm my_id.pub | ||
</ | </ |
howto/sshkey.1747086242.txt.gz · Last modified: 2025/05/12 21:44 by justip6