Login to VPS without a password using SSH
Connecting to your VPS via ssh without a password is groovy, heres how you do it.
It is possible to ssh into your Linux VPS without having to use a password.
Here are the steps:
- Create ssh key if you dont have one already
- Add the public ssh to the remote servers
authorized_keys
list
If you already have an ssh key skip to step 2
1 Create ssh key
First go to you .ssh
folder
Then type (to create the ssh key)
Follow the prompts
- push enter for each question to accept the defaults
- it will create a prive and public ssh key called
id_rsa
andid_rsa.pub
- do not enter a passwords
It will look like this:
2 Add key to authorized_keys
list
you will be prompted to enter your VPS password given for yourUsername
.
Jobs done, you should be able to ssh into VPS without entering a password.