Friday 30 September 2016

SSH v/s FTP

FTP

The File Transfer Protocol (FTP) is a standard network protocol used to transfer computer files between a client and server on a computer network. FTP is built on a client-server model architecture and uses separate control and data connections between the client and the server.


SSH

The Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote command-line login, remote command execution, and other secure network services.


What to use ssh or FTP

It depends upon requirements.
  • FTP and SSH are both network protocols that run on top of the TCP/IP layer, just like HTTP.
  • ssh and ftp are different protocols.ssh stands for Secure Shell (SSH) and FTP for File transffer Protocol.
  • SSH is vastly more secure.
  • If you are good at using unix commands then you like ssh but with command prompt you will get editor like nano and if you use ftp you can use any favourite editor for file editing.
  • If you need some library on server, with FTP first you need to download those file to your PC then you can upload it to server using FTP but with ssh getting files over server to server with command is much faster.you can use wget command and can download library within seconds

How to use FTP?

For FTP there are lot's of free client software available but i like Filezilla.

How to use ssh?

You can use different unix clients
For Windows : putty, git client
For Linux : today all most, all the linux based systems ssh is installed by default
Let us start with basic and simple ssh login command: ssh user@domain.com
Now terminal prompt for ssh password.
For those who are new, big quetion is from where you will get username and password for ssh.
If you are using shared hosting, most of the time it is your primary login user and password. Most of the Hosting provider companies set primary ftp login details same as ssh login details that's why these are same mostly.

I have tried it lot's of time but it is not working!!!

Not to worry, for security reasons ssh is disabled by almost all the shared hosting providers. just login to your bluehost, godaddy or hostgator hosting provider cpanel and search for ssh settings. there you will get option to enable it.
For SSH passwordless login follow instructions at SSH Passwordless Login.

No comments:

Post a Comment

LIKE US

Featured post

Workplace by Facebook

On 10 October, 2016 at an event in London, the Facebook finally officially launched "Facebook Workplace", a service designed speci...

Random