Generate a new SSH key.
To generate a new SSH key, enter the code below. We want the default settings so when asked to enter a file in which to save the key, just press enter.
$ ssh-keygen -t rsa -C "your_email@youremail.com"
Creates a new ssh key using the provided email
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/your_user_directory/.ssh/id_rsa):
Now you need to enter a passphrase.
To view the fingerprint of the ssh host key
ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
No comments:
Post a Comment