What SSH Is & How It’s Different From FTP [Technology Explained]

filetransfer1   What SSH Is & How Its Different From FTP [Technology Explained]FTP and SSH are both network protocols that run on top of the TCP/IP layer, just like HTTP. In plain English, it’s a certain way for devices to communicate with each other over a network.

Different ways of communication are used in different circumstances. There are different uses and different strengths. But exactly how SSH and FTP relate is unclear to most.

This installment in the Technology Explained series aims to shed some light on the two protocols and their differences.

Shell & Shell Accounts

Let’s get some basic terminology out of the way. To understand the purpose of SSH, you need to be familiar with some of the underlying elements.

The shell of a computer is a piece of software that allows users to directly communicate with the kernel, the very core of an operating system. The shell can have either a graphical or command-line interface (read: text input), or both.

shell   What SSH Is & How Its Different From FTP [Technology Explained]

A shell account, on the other hand, is a personal account that gives the user access to a shell on a different computer. They used to be commonplace and supplied by the Internet Service Providers, used to work with file storage, email accounts, newsgroups and more. The common denominator is that a shell account is used to enter commands on a remote computer.

Secure Shell Protocol (SSH)

Just like a web browser uses the HTTP protocol to talk with websites, a shell account needs a certain protocol to enable data exchange (read: communication) between the two networked devices. Meet SSH – Secure Shell Protocol.

SSH uses a public key encryption and was developed to replace Telnet and other insecure shell protocols. The two major versions, SSH-1 and SSH-2, are now the dominating protocols to access shell accounts.

crypto   What SSH Is & How Its Different From FTP [Technology Explained]

These days, SSH is used to log into and execute code on remote hosts, browse the web using encrypted proxy clients, and transfer files – even setting up a Virtual Private Network.

SSH clients are available for all major operating systems. Unix-based systems, including Linux and Mac OS X, can use OpenSSH. Also check the OpenSSH website for Mac OS and Windows alternatives. PuTTY is one of the most prominent Windows clients.

Secure File Transfer Protocol (SFTP) versus FTP

File transfer and VPN applications don’t run on SSH by default, but make use of SFTP – the SSH File Transfer Protocol. Mind you, SFTP is not the FTP protocol running over SSH, but a different file transfer protocol developed as an extension for SSH-2. SFTP is always used to transfer files over SSH, but it’s actually designed so it can be used in compliance with other protocols. That’s not for this article, though.

ftp   What SSH Is & How Its Different From FTP [Technology Explained]

Although not in the letter, for the end-user, SFTP can be seen as a secure relative of FTP. The latter transmits all data in plain-text. Packet intercepts can thus reveal crucial and private data, including your user name and password! SFTP, being an SSH-2 extension, uses public key security. This means the data is encrypted when it is being transmitted and potential intercepts are relatively useless.

SFTP as such is included in most popular FTP suites, albeit often without other SSH functionality.

I hope you’ve learned something from this article. If you’ve got any questions or suggestions, head to the comments section below!

Image credit: Shutterstock

The comments were closed because the article is more than 180 days old.

If you have any questions related to what's mentioned in the article or need help with any computer issue, ask it on MakeUseOf Answers—We and our community will be more than happy to help.

4 Comments -

James Bruce

For any readers who would like to try out SSH, bear in mind that most shared hosting providers (like godaddy etc) don’t allow SSH – you will need a virtual private server or better to be able to use SSH. Having said that, if you can do SSH it makes moving sites and databases around a whole lot easier.

Aibek

Agree with James, once you have tried using SSH you will never look at FTP again. Not only it’s faster but also more secure.