Why was I able to connect with SSH2 to an SFTP server with gFTP?

0

I'm learning Linux and on Windows when I used Filezilla I would connect using the sftp protocol. I noticed gFTP didn't have the option so I tried SSH2 and set the port to 22 and it worked. Why did this happen and is it safe to keep doing this?

Celeritas

Posted 2013-11-21T01:52:33.800

Reputation: 7 487

Answers

1

SFTP piggybacks on top of SSH. From the gFTP FAQ:

The SSH2 protocol uses the sftp-server executable on the remote host [...]

This means that as long as you can connect via SSH and have sftp-server available on the remote system, gFTP will log in via SSH and invoke the SFTP server on its own when the SSH2 protocol is selected. This is perfectly safe.

Ignacio Vazquez-Abrams

Posted 2013-11-21T01:52:33.800

Reputation: 100 516

What is a piggyback function? – Celeritas – 2013-11-21T02:11:55.183

@Celeritas: SSH is a transport protocol, SFTP is an application protocol that uses SSH as its transport, much in the same way that XML-RPC uses HTTP. – Ignacio Vazquez-Abrams – 2013-11-21T02:15:29.243