QUESTIONS
How can I create a new ssh key?
Can ssh use multiple keys?
Can I change the ssh key on my machine?
How can I switch different ssh keys?
LINKS Install ssh ssh keygenCorrect SSH Ensure you have the correct ssh version (running in a cmd/terminal).
CMD/Terminal
Open a CMD or terminal window.
Generate
Type the following command and answer both questions (for saving and password) with nothing (leaving it empty) by pressing ENTERssh-keygenEnter file in which to save the key (~/users/your-name/.ssh/id_rsa):Enter passphrase (empty for no passphrase ):Your public key has been saved in ~/users/your-name/.ssh/id_rsa.pub
This will create a ssh key in your user's default location (~/users/your-name/.ssh/id_rsa.pub) without the need for a local password
when connecting via SSH. Read more details about at the keygen documentation.
Check Files
You should have 2 files:
One file that has an file ending ".pub" is the public key, the other
one is the private one.
Never share the private key, it is only needed locally for the ssh-agent.
Only the public key is copied to all places you want to login.
APP | VERSION ssh 8+
RELATED TAGS ssh, ssh-agent, ssh keys, creat
QUESTIONS
How can I create a new ssh key?
Can ssh use multiple keys?
Can I change the ssh key on my machine?
How can I switch different ssh keys?