Home » FAQ & Tip, Software » How to connect to Linux from another PC via SFTP?

How to connect to Linux from another PC via SFTP?

This tutorial is showing you how to setup secured ftp connection from another machine to Linux. In this demonstration purpose, I am going to use Windows XP and Ubuntu 8.10 Server.

The rest of this post will take you through

  • Requirements
  • Installation
  • Setup connection

Requirements

  • SSH Server
  • SFTP Client

Installation

  1. On Linux, install SSH server on your Linux machine with the following command below (if you don't own the server or just want to connect existing server, you can skip this step)
  2. sudo apt-get install ssh

    and follow instruction until installation is completed.
    Now write down your Linux IP address you will need it latter.
    If you need to find out, use this command

    ifconfig

    in the output, find this "inet addr:192.168.0.2" it's your machine's IP address

    eth0  Link encap:Ethernet  HWaddr 00:0c:29:8b:89:5f
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
  3. On Windows XP, download one of the free SFTP Client
  4. Install SFTP client on Window XP

Set up Connection

Note: If you have Firewall installed on client machine (Windows XP) make sure you add your Linux to trust zone
Screenshot-sftp-firewall

  1. Start your SFTP Client ( I used WinSCP )
  2. Click on New button on the top right corner
  3. Fill in connection information. Host name, Port number (22 is default), User name and Password
    Screenshot-sftp-winscp01
  4. Click Save
    screenshot-sftp-winscp02
    You can optionally remember your password but not recommended if your Computer is shared with other people
  5. Click OK
  6. From main screen, select connection you've just created and click Login button at the bottom
    Screenshot-sftp-winscp03
  7. After successful login you should see similar screen below
    Screenshot-sftp-winscp04

Now you can start copy/write back and forth from/to your linux file system.

Author: Manet Yim FAQ & Tip, Software

201 views
  1. No comments yet.
  1. No trackbacks yet.