What's more secure: SSH or SFTP?

SSH goes through Telnet (usually port 23) and SFTP uses port 21. Which port and protocol is more secure? I'm thinking of using Putty but have heard that SSH might not be that secure?

Comments

HXn’s picture

SSH + FTP = SFTP.

FTP typically runs on port 21.
SSH/SFTP typically runs on port 22.
Telnet typically runs on port 23.

There's really no reason to use FTP and Telnet anymore. They are completely insecure. Always use SSH to encrypt your data in transit. Use SSH2 (typically default now), not SSH1 which is deprecated.

See:
http://en.wikipedia.org/wiki/SSH_file_transfer_protocol
http://en.wikipedia.org/wiki/Secure_Shell
http://openssh.org/

prokopton’s picture

That clears things up. Thanks!