How to Connect to an SFTP Site – Step-by-Step Tutorial

SFTP (Secure File Transfer Protocol) allows you to securely transfer files to and from a remote server. Here's a quick and easy guide to help you connect using a few common methods.

What You’ll Need

  • Hostname or IP address (e.g., sftp.example.com)
  • Port number (default is 22)
  • Username
  • Password or SSH private key

Method 1: Using FileZilla (Graphical Interface)

  1. Download and install FileZilla from filezilla-project.org.
  2. Open FileZilla and go to File > Site Manager.
  3. Click New Site and enter:
    • Protocol: SFTP – SSH File Transfer Protocol
    • Host: sftp.example.com
    • Port: 22
    • Logon Type: Normal or Key file
    • User: Your username
    • Password: Or browse to your private key file
  4. Click Connect. Accept the SSH key if prompted.

Method 2: Using Command Line (Windows, macOS, or Linux)

    1. Open your terminal or command prompt.
    2. Use the following command:
sftp username@sftp.example.com
  1. Enter your password when prompted.
  2. Use basic SFTP commands:
    • ls – List files
    • cd [directory] – Change directory
    • get [file] – Download a file
    • put [file] – Upload a file
    • exit – Disconnect

Method 3: Using WinSCP (Windows)

  1. Download and install WinSCP from winscp.net.
  2. Launch the app and enter:
    • File Protocol: SFTP
    • Host name: sftp.example.com
    • Port number: 22
    • Username and Password or use a private key
  3. Click Login to connect.

Tips

  • Use the correct format for SSH keys (.ppk for WinSCP, .pem for Unix).
  • Never share your credentials or private keys.
  • If prompted with a host key warning, verify it with your administrator.
  • 0 Users Found This Useful
Was this answer helpful?