I want to work with GitHub and multiple accounts. I am following this tutorial, I need to generate a unique SSH key for our second GitHub account and meet a problem:
Saving key "~/.ssh/id_rsa_nettuts" failed: No such file or directory
There is a a very similar answer, while the answers are all windows and do not work.
The code is as following:
$ ls
id_rsa id_rsa.pub id_rsa_nettuts known_hosts
$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/hou/.ssh/id_rsa): ~/.ssh/id_rsa_nettuts
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Saving key "~/.ssh/id_rsa_nettuts" failed: No such file or directory
$
Many Thanks in advance.
hope you are inside .ssh dir . When you are entering key name , just enter the file name instead of path. EX:
ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hp/.ssh/id_rsa): id_rsa_netus
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With