June 28, 2009...7:00 am

WYMWTTLinux – #18 SSH and SFTP

Jump to Comments

Why You Might Want to Try Linux (WYMWTTLinux) is a series of posts around the same topic – Ubuntu Linux.

d^_^b

SSH stands for Secure Shell, and SFTP stands for Secure File Transfer Protocol or SSH File Transfer Protocol. These two are usually used by Linux/UNIX systems obviously and enables secure exchange of data “between two networked devices”.

Since it’s used primarily on UNIX systems, you have to install a third party application to make the connection possible between a Windows computer and a server, for example. The third party app is called Putty (I’m sure you’ve heard of it? or perhaps heard it from an uber geek?).

But, if you’re using a UNIX/Linux-based OS like Ubuntu, there’s no need for Putty anymore – instead, you can use the Terminal to connect via the command line, or you can use Nautilus – if you prefer having a GUI to interact with.
So how then?

First of all, you have to make suret that you have a user account that you can use to login to the server/other computer.

—————————-
via Terminal
—————————-

open a Terminal window, and type

ssh user@hostIP -p 22

  • change user to your user account name
  • change hostIP to the IP address of the server/computer that you’re trying to connect to.  for ex. 192.168.0.2
  • change 22 to whatever port is being used was setup by your SysAd that accepts SSH connections. By default, it’s usually either 22 or 2222. Yes, the -p is included.

it’ll prompt you for the password ofcourse, and after successful login, you’ll see something like this:

—————————-
via Nautilus
—————————-

open a Nautilus window and type

sftp:user@hostIP:portnumber

  • change user to your user account name
  • change hostIP to the IP address of the server/computer you wish to connect to
  • change portnumber to the port number that was assigned by the sysad to accept sftp connections. again, by default it’s usually either 22 or 2222.

you will be prompted for the password of course, but it’ll be cuter now than with the Terminal

upon successful login, the root folder of the server/computer will show as a mounted volume in Nautilus

you can then do normal file operations as long as the mounted volume is there. Should you wish to terminate the connection, simply right click on it and click Unmount to unmount (eject or remove) the volume.

d^_^b

————————–

Leave a Reply