Thursday, December 04, 2025

Note to self - SSH keys

Whenever I need to setup a new ssh client device (laptop / chromebook / PC) or target (like a raspberry, ...) I need to google around how to do my SSH key setup. For Putty, that's easy, for ssh on the chromebook the google restults are less useful (YMMV).

So here's my reminder / note for next time on a chromebook:

On the new Chromebook, (create the linux environment and) open the Linux terminal.

Generate a new SSH key pair by running the command ssh-keygen.

Copy the public key to the server by running the command: ssh-copy-id user@hostname.

Enter the password for the user on the remote server when prompted. 

Then go to the terminal app and select the ssh configuration for that hostname.

Click on import and (re-) import the id_rsa file (you might need to make sure you see hidden files first via the ⋮ menu in the upper right corner)

No comments: