Answer the question
In order to leave comments, you need to log in
How to create multiple ssh public keys?
Good evening.
I bought a server at work.
The computer has a private and public ssh key, which come by default. id_rsa
I created the .ssh folder and the .ssh/authorized_keys file on the server and copied the public key from the computer there.
Now I enter ssh [email protected]_address in the terminal and I get to the server without a password.
This is clear to me.
What should I do at home.
There are also ssh keys here, with which I connect to the github.
I need to somehow drag that public key from the server to my laptop, but the keys work in conjunction with private and public.
Help me to understand.
Answer the question
In order to leave comments, you need to log in
I need to somehow drag that public key from the server to my laptop, but the keys work in conjunction with private and public.
ssh-copy-id [email protected]_address
and the public key from the home computer will be copied to the server. ssh-keygen -t ed25519
. Such keys do not at all get tired of RSA cryptographic strength, but encryption is faster and they are shorter (you will appreciate when you need to copy the public key by hand).
also in .ssh/authorized_keys the public key of the home computer. Or do you want to connect to your home computer?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question