Why is 22 the default port number for SFTP? Is there any specific reason for this?
It's the default SSH port and SFTP is usually carried over an SSH tunnel.
When I entered passive mode in FTP, I have got: 227 Entering Passive Mode (213,180,204,183,230,205). First 4 numbers are the IP addresses, but what are the two last? Are they two ports?
I'm trying to ftp a folder using the command line ftp client, but so far I've only been able to use 'get' to get individual files.
I'm trying to retrieve a file from a server using SFTP (as opposed to FTPS) using Java. How can I do this?