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
- 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)
- On Windows XP, download one of the free SFTP Client
- Install SFTP client on Window XP
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
Set up Connection
Note: If you have Firewall installed on client machine (Windows XP) make sure you add your Linux to trust zone
- Start your SFTP Client ( I used WinSCP )
- Click on New button on the top right corner
- Fill in connection information. Host name, Port number (22 is default), User name and Password

- Click Save

You can optionally remember your password but not recommended if your Computer is shared with other people - Click OK
- From main screen, select connection you’ve just created and click Login button at the bottom

- After successful login you should see similar screen below

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

Amazon

