D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG]Re: ssh remote logins

 


Hi Mark

Thanks for this, good idea on generating new keys for each device, I had a feeling that was the best thing to do. It is easy enough to generate and copy to the pi.

Private key is - filename
Public key is - filename.pub

Regards

Paul

On 28/04/2025 12:17, Mark Thurston wrote:
Technically you can use the same key but it might be better to generate new keys on each machine so you can revoke access on a machine my machine basis. Get it clear in your mind which is the private key and which is the public key and only share the public.





---- On Mon, 28 Apr 2025 08:50:17 +0100 *zleap via list <list@xxxxxxxxxxxxx>* wrote ---

    Hi All

    I have set up a Raspberry Pi on my local LAN and can log in to this
    via ssh, I have also set up an ssh key so I can log in remotely
    across the LAN without a password.

    If I want to log in from other computers (e.g laptop) on the same
    LAN do I need to set up a different key on each computer or can I
    copy the key from my desktop to the other computers.

    I will still need to run ssh-copy-id for each other computer.

    Thanks

    Paul
    --
    The Mailing List for the Devon & Cornwall LUG
    FAQ: https://www.dcglug.org.uk/faq/




--
Paul Sutton, Cert Cont Sci (Open)
https://personaljournal.ca/paulsutton/
Mastodon : @zleap@xxxxxxxx
--
The Mailing List for the Devon & Cornwall LUG
FAQ: https://www.dcglug.org.uk/faq/