How to transfer files to a server with SFTP

How to transfer files to a server with SFTP

Overview

SFTP, or SSH (or secure) file transfer protocol, encrypts files as they are being transmitted using an SSH connection. This method is preferred over FTP when transferring confidential data, as FTP poses significant security risks despite its popularity. 

Contents

What you need

Method 1: WinSCP

  1. Download, install, and launch WinSCP.

  2. When the startup menu appears, click New.

  3. Fill the fields as follows:

    1. File protocol: SFTP

    2. Host name: Enter the hostname provided in your Nexcess Welcome Email, or contact our Support Team for it. It will resemble example.nexcess.net, but replace “example” with the actual name.

    3. Username and Password: If these are unknown to you, you may view your SSH account user name and reset your password in SiteWorx. See How to reset your SSH password and add SSH keys in SiteWorx for details, or contact our Support Team.

    4. Port: If your username resembles an email address, enter 24. Otherwise, enter 22.

  4. If this is the first time logging into the server, you will see a warning about connecting to a remote machine. Click Yes.  

  5. WinSCP will connect you to your Nexcess server and you will see a window resembling the one below. To move a file, drag-and-drop the files from the origin folder to your destination folder.

Method 2: SFTP client

This method features Cyberduck, which is only one of many available SFTP applications. It is available for Windows and macOS, though the below steps use the latter.

  1. If you are a Nexcess Cloud client, skip to Step 2. If you are a Nexcess Classic (non-Cloud) client, you must first enable SSH access as outlined in How to enable SSH access.

  2. Download and launch Cyberduck. Click Open Connection.

  3. Enter the following information:

    1. From the drop-down list at the top, select SFTP (SSH File Transfer Protocol).

    2. Server: Enter the hostname provided in your Nexcess Welcome Email, or contact our Support Team for it. It will resemble <example>.nexcess.net, but you will replace <example> and the angled brackets (<>) with the actual name.

    3. Port:  If your username resembles an email address, enter 24. Otherwise, enter 22.

    4. Username and Password: If these are unknown to you, you may view your SSH account user name and reset your password in SiteWorx. See How to reset your SSH password and add SSH keys in SiteWorx for details, or contact our Support Team.


  4. Click Connect. If this is your first time connecting to this server, you will see a warning resembling “Unknown host key for <example.nexcess.net>.” Click Allow to continue.

  5. To move a file, drag-and-drop the files from the origin folder to your destination folder.  

 

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

 

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to create SSH keys in macOS and Linux
Added on Mon, Jun 11, 2018
How to transfer files using WinSCP
Added on Fri, Aug 15, 2014
How to use the Nexcess Secure Password Generator
Added on Tue, Jan 15, 2019
What are the advantages of using SSH keys to control access for multiple users?
Added on Wed, Dec 26, 2018
What are file and directory permissions?
Added on Wed, Dec 26, 2018
How to change your Client Portal password
Added on Mon, May 21, 2018
What is chmod?
Added on Mon, Feb 23, 2015
How to secure your WordPress site
Added on Wed, Dec 26, 2018
How to create a secure password
Added on Wed, Dec 26, 2018
How can I prevent my site from being compromised?
Added on Mon, Mar 18, 2019