ssh ftp permanent for wordpress

May 30, 2014 2k views
I have a droplet with ubuntu and have installed my wordpress, the problem arises when I try to upload something, I installed a plugin that recommended me for this kind of, well when I install plugins connections "SSH SFTP Updater Support" calls me the password, however when trying to import my old site through xml I boot a mistake, I guess it must be because you can not connect (no longer asking me password), my question is this: How do I get the key ssh sftp permanent in my wordpress and I might not ask all the time? I hope you can help me, I'm new to these issues thanks
1 Answer
If you set up SSH keys (without a passphrase), then you won't need to enter a password to use SSH.

This article shows how to set up SSH keys if you're using a Linux or Mac computer as your client

If you're using Windows, you'll need this article https://www.digitalocean.com/community/articles/how-to-use-ssh-keys-with-putty-on-digitalocean-droplets-windows-users

SSH Keys work like this:
Your machine (client) generates RSA keys. You then give the public key to any machine you want to connect to (eg. your server).
When you SSH, your computer uses it's RSA key to send an authentication to the server. The server verifies that YOU are connecting, by verifying with the stored key it has. Now the server is happy it's you, it doesn't need a password to log in.

Note that SCP uses SSH to send the file, so this will also allow you to use SCP without needing to enter a password every time.
SSH keys provide a more secure way of logging into a virtual private server with SSH than using a password alone. With SSH keys, users can log into a server without a password. This tutorial explains how to generate, use, and upload an SSH Key Pair.
Have another answer? Share your knowledge.