Why is 22 the default port number for SFTP? Is there any specific reason for this?
相关问题
- JavaScript File Transfer SSH
- Check whether the path exists on server or not in
- Port of the Rails app when running Cucumber tests
- Transfering data through FTP to a folder names con
- Check the update date of a file with FTP functions
Ahem, because 22 is the port number for ssh and has been for ages?
Why is 21 the default port for FTP? Or 80 the default for HTTP? It is a convention.
From Wikipedia:
Source
So as others mentioned, it's a convention.
It's the default SSH port and SFTP is usually carried over an SSH tunnel.
Not authoritative, but interesting: 21 is FTP, 23 is telnet. 22 is SSH...something in between (that can take the place of both).