If you’ve tried setting up password-less signing for RSYNC or SSH and still get the prompt to enter a password then this article will hopefully fix the issue. I’ve previously written an article about how to set up RSYNC to backup your files and databases from one server to another here: SETTING UP RSYNC FOR FILE SYNCHRONISATION

If everything was configured correctly, then when you use ssh [username]@[server IP address] you will not receive the prompt to enter the password just like this:

The Simple Entrepreneur SSH AND RSYNC TO THE REMOTE SERVER KEEPS ASKING FOR A PASSWORD

But if you receive a prompt similar to this it means something went wrong:

The Simple Entrepreneur SSH AND RSYNC TO THE REMOTE SERVER KEEPS ASKING FOR A PASSWORD ERROR

If you enter the password and then try to reconnect, it will once again ask for the password. To solve this you need to do the following:

  • SSH to the local server and go to .ssh/
  • View the contents of the id_rsa.pub file by using an editor such as vi It will look something like this
The Simple Entrepreneur SSH AND RSYNC TO THE REMOTE SERVER KEEPS ASKING FOR A PASSWORD id rsa
  • Copy the contents of this file and then SSH to the remote server.
  • Edit the file authorized_keys and paste the contents from id_rsa.pub into the file. Save the file contents.

Now try to connect to the remote server from the local server and it should work. Hopefully, this should work and if it doesn’t please reach out.

Subscribe to my newsletter where I will share my journey in affiliate marketing, business, technology, fitness and life in general. Hopefully, this motivates you to also change your journey in life.

This field is required.

Subscribe to my newsletter where I will share my journey in affiliate marketing, business, technology, fitness and life in general. Hopefully, this motivates you to also change your journey in life.

This field is required.

If this article helped you in any way and you want to show your appreciation, I am more than happy to receive donations through PayPal. This will help me maintain and improve this website so I can help more people out there. Thank you for your help.

HELP OTHERS AND SHARE THIS ARTICLE


1Shares

LEAVE A COMMENT