Create a ssh key:
$ ssh-keygen -t rsa –P ""
Moving the key to authorized key:
$ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys bash: /home/user/.ssh/authorized_keys: No such file or directory
An element of the path
You'll now get:
Since that file can't be in that place, if
You're following some instructions having possibly skipped some bits. To create the directory:
Make sure that you are logged in as the user that you want to create the ssh key for first (or be prepared to modify the paths in the command to the correct home directory).
Then just create the directory:
Create the file using the
You might want to make sure that the .ssh directory has appropriate permissions as well.
If possible I always encourage people to use the commandline tool
If you just want to copy your default SSH public key to a remote sever you simply run the following command:
I show an actual full example of how to use this tool in this Q&A titled: Can't share an ssh connection with rsync.
This can also fail if, when creating the key with