FTP & SSH Access – ChemiCloud Knowledge Base & Self-Support Center https://chemicloud.com/kb Fri, 28 Mar 2025 12:17:47 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 https://chemicloud.com/kb/wp-content/uploads/2019/06/favicon_rk1_icon.ico FTP & SSH Access – ChemiCloud Knowledge Base & Self-Support Center https://chemicloud.com/kb 32 32 How to Fix SSH Permission Denied (publickey) Error on Linux and Mac https://chemicloud.com/kb/article/ssh-permission-denied-publickey-error/ https://chemicloud.com/kb/article/ssh-permission-denied-publickey-error/#respond Fri, 28 Mar 2025 12:17:47 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=8620 The “Permission denied (publickey,gssapi-keyex,gssapi-with-mic)” error you’re encountering suggests that SSH is unable to authenticate using the private key located at:

~/.ssh/id_rsa

Here’s a step-by-step guide to troubleshoot and resolve this:

Step 1) Check If SSH Agent Is Running and Add the Key

Run the following to check if your SSH key is loaded in the agent:

ssh-add -l
  • If you see something like:

The agent has no identities.

Add the key manually:

ssh-add ~/.ssh/id_rsa
  • If your key is encrypted, it will ask for the passphrase.

  • Once added, try connecting again:

ssh username@server-ip-address

Step 2) Check File Permissions

Incorrect file permissions can cause the Permission denied error. Run the following:

# Correct permissions for private key
chmod 600 ~/.ssh/id_rsa

# 
Correct permissions for public key
chmod 644 ~/.ssh/id_rsa.pub

# Correct permissions for the .ssh folder
chmod 700 ~/.ssh

Step 3) Verify Key Usage in SSH Config (Optional)

If you are using a custom SSH key or different config, check the SSH config file:

nano ~/.ssh/config

Ensure the following is in place (replace with the correct IP if needed):

Host server-ip-address User user-to-connect     IdentityFile ~/.ssh/id_rsa

Step 4) Test Verbose Mode for Debugging

If it still doesn’t work, run SSH in verbose mode to get more details:

ssh -v username@server-ip-address-or-hostname

This will help identify any configuration issues.


Step 5) Regenerate SSH Key (if needed)

If the key is corrupted or invalid, regenerate a new key:

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  • Save the new key as id_rsa in the ~/.ssh directory.

  • Add the new public key to the server’s ~/.ssh/authorized_keys file.


Step 6) Check if Public Key is added on the Server

If you suspect the key is missing on the server, ensure that your public key is added to the ~/.ssh/authorized_keys on the server.


If none of these steps work, send the output of verbose mode to your server administrator.

]]>
https://chemicloud.com/kb/article/ssh-permission-denied-publickey-error/feed/ 0
How To Use CyberDuck with SFTP On Windows 10 https://chemicloud.com/kb/article/cyberduck-with-sftp-on-windows-10/ https://chemicloud.com/kb/article/cyberduck-with-sftp-on-windows-10/#respond Thu, 04 Feb 2021 18:43:37 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=4600 Cyberduck is an excellent application that supports SFTP, among many other protocols. However, setting it up can be confusing as powerful as it is.

This Knowledge Base article will guide you on connecting to your Web Hosting Account via SFTP using the CyberDuck FTP client on Windows 10.

How To Use CyberDuck with SFTP On Windows 10

Important:

This article assumes you have already downloaded your SSH Private Key from cPanel > Security > SSH Access in PPK format. If you are not sure how to do that, please review our Knowledge Base article on SSH Keys here.

Additionally, this article assumes you have already downloaded & installed Cyberduck.

Step 1) Open Cyberduck and click Open Connection in the top left corner of the application.

Step 2) Click Open Connection in the top left corner. When the Open Connection Dialog appears, you will be prompted to enter some login information. Let’s review the options on this screen:

  1. Be sure you choose SFTP from the drop-down menu.
  2. In the server field, enter your domain name
  3. Be sure you are using Port 1988.
  4. In the username and password field, enter the username + password for the cPanel account, not for an FTP account that you manually created. This information is included in your Welcome Email.
  5. Under SSH Private Key, choose the private key that matches the one created in your cPanel > Security > SSH Keys.
  6. Click Connect to connect to the server.

Your completed dialog box should look similar to this:

Except for your username and password + private key, it will be unique to your domain.

And that covers how to connect to SFTP using Cyberduck on Windows 10!

Are you struggling with SFTP connection errors? ChemiCloud is the hosting solution designed to save you time! 🤓 Check out our web hosting plans!

]]>
https://chemicloud.com/kb/article/cyberduck-with-sftp-on-windows-10/feed/ 0
How To Use FileZilla to Upload Files by FTP https://chemicloud.com/kb/article/how-to-use-filezilla-to-upload-files-by-ftp/ https://chemicloud.com/kb/article/how-to-use-filezilla-to-upload-files-by-ftp/#respond Wed, 16 Dec 2020 11:57:42 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=3999 FileZilla is probably the most popular, if not one of the most popular file transfer tools available for Linux, MacOS, and Windows. It’s free, open source, and has an easy to use UI with some great advanced features, like bookmarks, and the ability to pause/resume transfers of large files, as well as a tabbed interface and remote file search.

Despite it’s abilities, some users may find it a bit daunting to use. But not to worry! In this KB article, we’re going to cover how to connect to the server hosting of your website using FTP and upload a ZIP file using FileZilla.

How to Download & Install FileZilla

FileZilla is Free and Open Source Software. The programming code that makes the application work is available to the public for both examination and editing. One consequence of this is anyone can repackage the code into a clone of FileZilla and make it look like the real thing, but do nefarious things with it and when users install their version of the application, they end up with some spyware or malware installed.

To spare you that, you can click this link to the official FileZilla website where you can download the application knowing it’s the real deal. Next, click the grey “Download FileZilla Client” button.

Their website will automatically determine which Operating System you are running and you will see a green button to download FileZilla Client:

Click this button to download the application. Then open the file you’ve downloaded to install FileZilla.

How To Use FileZilla to Connect by FTP

1) Open FileZilla and enter the FTP login details in the fields located at the top of the application.

2) You will need the following details regarding the FTP account on your server:

Host: this can be your domain name of the hosting server where your account resides;
Username: your cPanel username;
Password: your cPanel password;
Port: 21; ( or do not complete that field, it will go by default on 21 )

If you’d like to create an additional FTP account in cPanel, please review this KB article.

Finally, if you’d like to connect via sFTP and you are unfamiliar with configuring FileZilla for sFTP, please review this KB article.

3) Click the “Quickconnect” button.

Your computer connects to your web server. The directory of folders and files from your local computer appears on the left of the FileZilla FTP client window, and the directory of folders and files on your web server is displayed on the right.

How To Use FileZilla to Upload Files by FTP

The screenshot below is nearly identical to what you will see when you connect to the server hosting your website.

How to use FileZilla

The interface is pretty easy to understand. The top half of the application is dedicated to showing logs of transfers.

The left middle section is your computer, while the middle right section is the server.

Struggling with FTP connection issues? ChemiCloud is the hosting solution designed to save you money and time! 🤓 Check out our web hosting plans!

I have a ZIP file containing the latest release of WordPress in my Downloads folder, which I want to upload to my public_html folder. To do this, I will navigate to my Downloads folder on the left side of FileZilla. Then, on the right side of the app, I will find and open the public_html folder.

Now, to copy the WordPress ZIP file to the public_html folder, I need to click on it once, then drag and drop it into the public_html folder, like below:

Notice, that the small section at the bottom displays the transfer status of the ZIP file after I drop it into the public_html folder, and after the transfer completes, we can see the ZIP file in the public_html (right side), along with the other files/folders.

If you want to copy multiple files from your computer, you can absolutely do that by selecting them with your mouse or holding the CTRL or CMD Key and clicking on individual files, depending on your OS.

That’s it!

We hope you enjoyed this Knowledge Base Article. If you have any questions, please reach out to our Happiness Engineers available 24×7.

]]>
https://chemicloud.com/kb/article/how-to-use-filezilla-to-upload-files-by-ftp/feed/ 0
Where Do I Need to Upload My Website Files? https://chemicloud.com/kb/article/where-do-i-need-to-upload-my-website-files/ https://chemicloud.com/kb/article/where-do-i-need-to-upload-my-website-files/#respond Fri, 19 Jul 2019 10:38:40 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2308 Your website file must be uploaded into the public_html directory, which is, in general, the document root folder for your primary domain name associated to the hosting service.

If you are hosting additional domains, which are added as Addon domains or sub-domains in cPanel, they have their own document root folder and should be found in account’s home directory (above public_html).

You can easily locate the document root for an addon domain from cPanel > Domains > Addon Domains and look at Modify Addon Domain section.

As for any sub-domains, you can easily locate the document root from cPanel > Domains > Subdomains > Modify a Subdomain section.

]]>
https://chemicloud.com/kb/article/where-do-i-need-to-upload-my-website-files/feed/ 0
SSH Authentication Refused: Bad Ownership or Modes for Directory https://chemicloud.com/kb/article/ssh-authentication-refused-bad-ownership-or-modes-for-directory/ https://chemicloud.com/kb/article/ssh-authentication-refused-bad-ownership-or-modes-for-directory/#comments Wed, 26 Dec 2018 13:25:17 +0000 https://chemicloud.com/kb/?post_type=article&p=1237 If you get this error in your logs when trying to set up public key authenticated automatic logins, or while trying to SSH into your account, after setting up the public key the issue is related to permissions.

Tailing /var/log/secure on the target machine will be useful:

tail -f /var/log/secure
Dec 26 12:30:38 server sshd[3503454]: Authentication refused: bad ownership or modes for directory /home/user/.ssh

As you can see – bad ownership or modes for directory /home/user/.ssh.

SSH doesn’t like it if your home or ~/.ssh directories have group write permissions. Your home directory should be writable only by you, ~/.ssh should be 700, and authorized_keys should be 600 :

chmod go-w /home/user
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys

So fixing permissions is the way to go and have this error resolved.

Tired of hassling with troubleshooting?  ChemiCloud is the managed hosting solution designed to save you time and money! 🤓 Check out our web hosting plans!

]]>
https://chemicloud.com/kb/article/ssh-authentication-refused-bad-ownership-or-modes-for-directory/feed/ 21
How to Use File Manager in cPanel https://chemicloud.com/kb/article/use-file-manager-cpanel/ https://chemicloud.com/kb/article/use-file-manager-cpanel/#respond Tue, 14 Mar 2017 13:44:03 +0000 https://chemicloud.com/kb/?post_type=article&p=647 This tutorial will show you how to access the File Manager and then review the available features.

The File Manager allows you to manage your site through HTTP rather than an FTP tool. While not as sophisticated as most FTP tools, File Manager gives you all the basic functionality necessary to manage your site.

You can easily edit, copy, move, delete, and change permissions on the files hosted on your account by using File Manager.

1) Log into cPanel.

2) Look for the “FILES” section and click on “File Manager”.

cPanel > Files > File Manager

3) You’ll automatically be logged into your account’s home directory of your account.

4) You can easily navigate between folders, click on the folder name and the sub-folders, and the folder’s content will be visible in the right window.

If you are uploading files for the hosting’s main account, then the files should be uploaded in the public_html directory. In case you are doing the upload for an addon or subdomain, look for a folder with the same name inside the account’s home directory ( one level up public_html ).

How to Create a New File or Folder in File Manager

To create a new file or folder, please follow these steps:

1) Click on the +File or +Folder icon in the top-left corner, depending on what you need to create a file or a folder.

2) A new window will open; here, you’ll have to enter the name of the new file/folder and the folder in which this file/folder should be created, by default, this will be added to the home directory of your account.

In the above example, we’ve created a file named robots.txt in the /public_html folder. Next, click on the Create New File button.

That’s it; the file robots.txt is created in the account’s public_html directory.

How to Edit a File using File Manager

To edit a file, please follow these steps:

1) Navigate to the folder where the file is located.

2) Select the file you wish to edit by clicking on it and hitting the Edit button:

3) After you make the necessary changes click on the “Save Changes” button to make them permanent.

How to Upload a File using File Manager

1) Navigate to the folder where you want to upload the file. We’ll use public_html as an example.

2) Click on the “Upload” button in the top menu.

3) Select the file you want to upload from your computer or drag and drop it from your computer to File Manager’s upload tab.

4) A progress bar will appear after you select the file; when the upload is complete at 100% you can go back to File Manager.

That’s it. Now you know how to upload a file using the online File Manager in cPanel.

]]>
https://chemicloud.com/kb/article/use-file-manager-cpanel/feed/ 0
How to Log in to Your Account via SSH https://chemicloud.com/kb/article/log-account-via-ssh/ https://chemicloud.com/kb/article/log-account-via-ssh/#comments Mon, 06 Mar 2017 06:59:38 +0000 https://chemicloud.com/kb/?post_type=article&p=611 What is SSH?

SSH or Secure Shell is a network communication protocol that enables two computers to communicate and share data. Using an SSH connection you can easily manage or edit all your files and folders directly on the server.

While there are a few different ways of logging into an SSH server in general, you can connect to your ChemiCloud server using SSH keys. SSH keys provide an easy, yet an extremely secure way of logging into your server, that why this is the method we recommend for all users.

SSH key pairs are two cryptographically secure keys that are used to authenticate a client to a server, each key pair consists of a public key and a private key. Luckily you can easily generate and save a key pair from your cPanel account by following this guide.

Please make sure that your SSH Key has been authorized before setting up SSH authentication

How to Connect to Your Server Using SSH Keys in MacOS

1) Find the “Terminal” application in launchpad and start it.

2) Save the key from your cPanel account as described here.

3) Now you need to add the Private Key that you downloaded to your Mac OSX Keychain, this can be done by running the following command in the terminal:

ssh-add -K /path/of/private/key

You’ll be asked for the password you used when generating the SSH Key in cPanel.

4) Now you are ready to connect to the server via SSH, you just need to run this command from the terminal:

ssh USER@HOST_NAME -p 1988

USER – this will be the same username as the one you use to log in to your cPanel account.

HOST_NAME (or IP address) – here you should enter either the hostname or the IP of the server to which you wish to connect;

p – the port used for the connection, we use port 1988 for SSH access.

That’s all, you should now be logged into your account.

How to Connect to Your Server Using SSH Keys in Linux

1) Find the “Terminal” application in launchpad and start it.

2) Save the key from your cPanel account as described here.

3) Now you need to add the Private Key that you downloaded to the ssh-agent, this can be done by running the following command in the terminal:

ssh-add -k /path/of/private/key

You’ll be asked for the password you used when generating the SSH Key in cPanel.

4) Now you are ready to connect to the server via SSH, you just need to run this command from the terminal:

ssh USER@HOST_NAME -p 1988

USER – this will be the same username as the one you use to log in to your cPanel account.

HOST_NAME (or IP address) – here you should enter either the hostname or the IP of the server to which you wish to connect;

p – the port used for the connection which is 1988.

That’s all, you should now be logged into your account.

How to Connect to Your Server Using SSH Keys in Windows Using PuTTy

While MacOS and other Linux-based operating systems have an integrated terminal, you will need special software on Windows.

PuTTY is a free and popular open-source terminal emulator that can be used to connect to the server.

1) Install and run PuTTy. Expand the “SSH” category from the left side and click on the “Auth” button. From the right side window click on the “Browse” button and select downloaded private key, this key needs to have a *.ppk or *.txt extension. This can be downloaded directly from the cPanel account.

2) Click on “Session” tab located in the top left menu, and enter the “IP” and the port:1988 (both are in your welcome letter – this may come as an IP address or a hostname).

3) Under “Saved Sessions” enter a custom name which will be used to save this information fields. Click on the “Save” button to save all the settings so you don’t need to add the key again next time you try to connect.

4) That’s all you need to do, now just click “Open” and the server will ask you for the passphrase you have used for your SSH Key after you enter it you’ll connect to the server.

How to Connect to Your Server Using SSH Keys in Windows Using xShell

xShell is a preferred SSH application of many developers and is widely regarded as the most powerful SSH client available. The app is free for personal use and is very easy to setup.

Important TIp:

Be sure you’ve downloaded the private key you want to use from your SSH Access area in cPanel as you’ll need it to setup xShell.

Step 1: Download the app from the xShell website. After the download is complete, open the app. The Sessions tab will open by default. Click the New button in the top left corner.

Step 2: In the Properties of the New Session, you just need to configure a few settings.

First, enter a name for the session so you know what it is the next time you open xShell.

Second, make sure the Protocol chosen is SSH.

Third, for host enter the IP address, serverhostname, or domain name, to which you are connecting.

Fourth, and perhaps most important, make sure you are using port 1988, not port 22, if you are hosting at ChemiCloud.

Step 3: Next, click the Tunneling option from the menu on the left.

Make sure you uncheck the box next to Forward X11 connections to.

Step 4: Click the Authentication tab.

On this screen, enter the username for the SSH user you’re using.

Next, and this is very important, enter the password that goes to the key you are using. Not the password that goes with the SSH user, i.e. your cPanel account.

After that, make sure the checkbox next to Public Key is checked, then click Connect.

Step 5: You will be prompted to accept the key of the server to which you’re connecting. Click Accept and Save so you don’t have to worry about this again next time you connect.

Next, you need to enter the password for the key you’re using.

You will be connected to the server .

Congrats! You’ve setup Xshell and the next time you open the app, you’ll be able to easily connect!

How to Connect to Your Server Using the Terminal Feature in cPanel

cPanel features an integrated Terminal that you can use in lieu of a stand-alone terminal application. This is handy if you’re working on a different system and don’t have your personalized terminal and SSH keyset installed.

Step 1: Login to your cPanel. If you’re a ChemiCloud customer, there’s a lot of ways to do this, but the sure fire easiest way is to login to your Client Area, then open your cPanel.

Step 2: Scroll down to the Advanced section and click Terminal to open the Terminal.

Step 3: The terminal will open and you will be able to issue commands direct to the server as your cPanel user.

That’s a wrap! You now know how to easily connect to your account using SSH.

]]>
https://chemicloud.com/kb/article/log-account-via-ssh/feed/ 1
How to Use FileZilla With SFTP https://chemicloud.com/kb/article/how-to-use-filezilla-with-sftp/ https://chemicloud.com/kb/article/how-to-use-filezilla-with-sftp/#respond Sun, 05 Mar 2017 11:23:57 +0000 https://chemicloud.com/kb/?post_type=article&p=610 The first thing you will need is an FTP client. This is a program that allows you to connect to a host server’s FTP connection. You can choose to use different FTP clients but they will all operate almost the same, but we recommend FileZilla.

Follow these steps to establish an SFTP connection to your hosting account with FileZilla (make sure to get the “client” version):

1) Download and install FileZilla on your computer.

2) From your cPanel account generate a new SSH key pair and download the private key to your computer in the .ppk format.

3) Open Filezilla and click the Edit button from the menu then select Settings.

4) From the Settings window click on SFTP tab.

FileZilla SFTP - Add Key

5) Next click on “Add Keyfile” and select the private key you generated within cPanel. You will be prompted to convert the file to a supported but unprotected format (no password), confirm it by clicking the Yes button and type your password.

You will be asked to store the key in the putty format, save it on your computer to continue.

6) Use the following login information to connect to your server via SFTP:

FTP Server: enter  sftp:// followed by your domain name or the main IP of the server you are hosted on, for example sftp://domain.com
FTP Username: cPanel username (main FTP username)
FTP Password: username password
FTP Port: 1988 ( which is the default SSH port for the ChemiCloud’s servers)

During your first connection, you’ll be asked to store the server’s fingerprint. Click the “OK” button to continue connecting and tick the “Always trust this host, add this key to cache” checkbox if you plan to connect to the same server again.

Please note that you can only connect to your hosting account via SFTP with the main FTP username and you can not connect with an additional FTP account that you have created via your cPanel -> FTP Accounts.

]]>
https://chemicloud.com/kb/article/how-to-use-filezilla-with-sftp/feed/ 0
How to generate a SSH key https://chemicloud.com/kb/article/generate-ssh-key/ https://chemicloud.com/kb/article/generate-ssh-key/#respond Sun, 05 Mar 2017 10:09:22 +0000 https://chemicloud.com/kb/?post_type=article&p=595 The cPanel SSH Access interface allows you to generate and download an SSH Key pair for your account. SSH allows secure file transfer and remote logins over the internet, the connections via SSH are encrypted, allowing secure connections.

How to generate an SSH key

1) Log into cPanel.

2) Look for the SECURITY section and click on SSH Access

3)  Click on the “Manage SSH Keys” button.

4) Click on the “Generate a New Key” button.

5) In the next screen, you’ll be asked to choose a name and a password for your SSH Key. Please ensure you write down this password, as you need it to establish the SSH connection. Next, choose DSA or RSA for the type. It’s recommended that you choose RSA and use the 2048 or higher key size. Once you are ready, click on the “Generate Key” button.

6) After the Key is generated, a confirmation message will appear on the next screen. Click on the “Go Back” icon to view/manage your SSH Key.

How to Authorize an SSH Key

For the new SSH key to function, we must authorize it. This can quickly be done from the “SSH Access” section within cPanel.

1)  Click on the “Manage” link next to the key you generated earlier.

2) Now click the “Authorize” button to complete the process.

How to Download the Private Key

Now that we have generated and authorized the SSH Key, we’ll need to download it.

1) From the SSH Access section, click on the View/Download button corresponding to the key pair you have just generated and authorized.

2) Here, you’ll see two options if you are a Mac/Ubuntu/Other Linux user, copy the text from the window to a file on your PC. You can name it key.ppk. Another option would be to click the “Download Key” button, which will automatically save the Private Key to your computer.

3) If you are a Windows user, you will need to enter the passphrase you set while creating the key and convert the key to a format that Windows software (generally PuTTY) understands, and click on the “Convert” button.

4) Click on “Download Key” to save the key to your computer.

Important Information:

If you receive an error while importing your keys in Linux, we recommend setting the correct file permissions on the key file you’ve downloaded. Review the KB we have on this topic here for assistance, or you can contact our Support team for more information and assistance in completing this!”

]]>
https://chemicloud.com/kb/article/generate-ssh-key/feed/ 0
How to use FTP https://chemicloud.com/kb/article/how-to-use-ftp/ https://chemicloud.com/kb/article/how-to-use-ftp/#comments Mon, 20 Feb 2017 08:15:28 +0000 https://chemicloud.com/kb/?post_type=article&p=496 The first thing you will need is an FTP client. This is a program that allows you to connect to a host server’s FTP connection. You can choose to use different FTP clients but they will all operate almost the same, but we recommend FileZilla. Please be sure to select one that allows for FTP over SSL (FTPS) as a  secure encryption option within its settings.

Follow these steps to connect to the FTP server with FileZilla (make sure to get the “client” version):

1) Download and install FileZilla on your computer.

2) Open FileZilla and enter the FTP login details in the fields located at the top of the application.

3) You will need the following details regarding the FTP account on your server:

Host: this can be your domain name of the hosting server where your account resides;
Username: your cPanel username;
Password: your cPanel password;
Port: 21; ( or do not complete that field, it will go by default on 21 )

4) Click the “Quickconnect” button.

Your computer connects to your web server. The directory of folders and files from your local computer appears on the left of the FileZilla FTP client window, and the directory of folders and files on your web server is displayed on the right.

You can now transfer files and folders between your local computer and your hosting account by dragging them from the left pane to the right.

 

]]>
https://chemicloud.com/kb/article/how-to-use-ftp/feed/ 2