RPi ssh connection by key

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
User avatar
oldal
Level 1
Level 1
Posts: 33
Joined: Sat Jul 03, 2010 1:35 am
Location: Canberra, Australia
Contact:

RPi ssh connection by key

Post by oldal » Wed Mar 21, 2018 6:24 am

One Raspberrypi (RPi 3 B) is connected to my computer. It is accessible by ssh password. My home computer runs on linuxmint. RPi runs on Raspbian The connection works ok, but requires the password on each connection. SSH key would be simpler and more secure.
I would appreciate advice how to convert this connection from password to ssh-key.
All suggestions will be gratefuly received and appreciated,
OldAl.
---
OldAl - in Canberra, the capital of Australia

fabien85
Level 7
Level 7
Posts: 1582
Joined: Tue Mar 11, 2014 4:30 pm

Re: RPi ssh connection by key

Post by fabien85 » Wed Mar 21, 2018 7:47 am

You will easily find documentation on the web to do that, e.g.
https://devops.profitbricks.com/tutoria ... on-ubuntu/
https://linode.com/docs/security/authen ... -with-ssh/
https://www.digitalocean.com/community/ ... nux-server

Basically you need to generate a key on your Mint computer with ssh-keygen then copy it to .ssh/authorized_keys on the remote server.
Once you have that set up, if the server is accessible through internet, you could take the occasion to secure the access (e.g. disable root login and connection via password, change the listen port)

Post Reply

Return to “Installation & Boot”