this post was submitted on 24 Mar 2024
7 points (88.9% liked)

raspberrypi

3349 readers
2 users here now

Community about the single-board computers, micro-controllers and related projects.

https://www.raspberrypi.com/

Other RaspberryPi communities on Lemmy

founded 4 years ago
MODERATORS
 

Hi everyone, every time I setup a Pi project server I have a hard time since I can only access that device from the computer where I created the image since I add the SSH key during setup, but I would like to be able to ssh from my android and my other laptop in case I'm out on the road and away from home.

How can I add the other keys for the other devices to a single Pi without using the user name and password as this is also given me problems because ssh wants to try using keys and if it does not find them it just fails instead of asking me to enter the password (also, because it's not really safe).

you are viewing a single comment's thread
view the rest of the comments
[–] HurlingDurling 1 points 8 months ago (1 children)

Thanks I tried adding the second ssh pub key to my servers authorized keys, but now it tells me that because the user name is different it wont let me connect

[–] solrize 1 points 8 months ago (1 children)
[–] HurlingDurling 1 points 8 months ago

Thanks I'll try that tomorrow and report back if it worked.