WinSCP is a popular SFTP client that many people use for transferring files to and from their WordPress site. Like other SFTP clients, such as FileZilla, it can be easily configured to use SSH keys when connecting WordPress sites at Pagely.
In this article, we'll show you how to configure WinSCP to connect to your WordPress site.
Requirements
Before starting, make sure you have done the following:
Configuring WinSCP
After your SSH user and key are configured within Atomic, you're ready to configure your WinSCP client to transfer files over SFTP. Here's how to do it:
- Begin by launching WinSCP. Inside the Site Manager window, select New Site.
- Inside your new site configuration, located the File Protocol drop-down and select SFTP.
- Next, you'll set the Host Name field to the domain that's pointed to your WordPress site.
(If you haven't yet pointed a domain to your WordPress app on Pagely, you can use your *.pressdns.com subdomain here instead.) - By default, the Port Number field should already be set to 22. If not, go ahead and set it to 22.
- Inside the User Name field, enter the username of the SSH user that you created inside Atomic.
Don't forget the client_ prefix that's present on all Pagely SSH usernames! - Next, we'll need to configure authentication via SSH key. Start by clicking on Advanced.
- Inside the Advanced Site Settings window, locate the SSH section and click on Authentication to view the SSH authentication settings.
- To set your connection to use your SSH private key for authentication, locate the Private Key File field and select your SSH private key that you've previously generated and associated with your SSH user. Once it's selected, press the OK button to save your settings.
- Now that your settings are in place, you'll probably want to save them for later. To do so, click on the Save button.
- Finally, test your connection by clicking the Login button.
That's all there is to it! You're now all configured to connect to your WordPress site with WinSCP!