Connecting to SFTP for Shared Accounts
Generate access keys via cPanel
If you have not already done so, create your public and private keys as per the instructions in the SSH access for Resellers and Shared Servers article. If you already have created keys for SSH access, the same keys will be used for SFTP.
Create the FileZilla profile
After your keys have been generated, you will need to create your SFTP profile in your FileZilla application. There are twos teps to this process. First you will need to attach your private keyfile to FileZilla and then you will need to create your connection profile.
Attach your private keyfile.
- Log into your FileZilla application.
- From the upper toolbar, click on Edit and then Settings.
- A settings popup will appear. From there click on SFTP in the left-hand toolbar. In the right panel, click on the Add keyfile... button.
- Using the popup window, navigate to the ppk file you saved for your private key and click Open.
- The keyfile will appear in the list. Click the OK button to save the information.
Set up the SFTP connection profile
- Using the upper toolbar, click on File and then Site Manager.
- A popup will appear for you to create a new profile. Click on the New Site.
- The right hand form will appear brighter, indicating you can now enter data in it. Be sure to enter data into the following fields:
Field Description Host Enter your domain name here. (ie: example.com) Port Set this to "2222". Protocol Set this to "SFTP - SSH File Transfer Protocol". Logon Type Set to "Ask for Password". User Enter your cPanel username. Password Enter your current cPanel password.
- Once all data has been entered, click Connect to let FileZilla connect to your server.
Once you have completed the above, you should be able to connect to your shared account using SFTP.
Support Center Login
Social Media Login
2015-04-15 3:37 pm
I'm trying this method to log in to a subdomain's FTP account, but the passphrase to the key isn't accepted, Coda 2 on Mac Yosemite.
2015-04-15 3:38 pm
Unable to extract public key from private key file: Wrong passphrase or invalid/unrecognized private key file format
2015-04-16 10:36 am
Sorry for the problems with connecting Coda2 through SFTP. I would suggest using SSH instead - as I do not have Coda2 to test. However, I did see this article with another Coda2 user having the same problems, so he switched to SSH: How to Setup Coda2 SFTP using Private SSH Key. Check that out, and also our own article for connecting to a shared server SSH with a Mac. Hopefully, that will cover all the bases.
If you have any further questions or comments, please let us know.