45 pts.
 SFTP using port number 10022
Hi, Can someone please explain me the differene between port number 10022 and 22 for implementing SFTP transfer. Which port is preferrable and why?
ASKED: Dec 22, 2011  8:03 AM GMT
UPDATED: February 28, 2012  2:32:28 PM GMT
60,255 pts.

Answer Wiki:
Port 22 is the standard port for SSH connections. It is a "well known" port. If you configure your SSH server to use another port, nobody (not really) will be able to establish a connection using SSH unless you tell them the port you configured. This wouldn't be an issue as long as you make sure that any interested party is appropriately informed about this change.

Some people change ports as a security measure, but I can guarantee you that if someone really wants to break into your systems, a simple port change won't stop him/her.

So, which port is preferable ? That would depend on the goal. Personally I prefer to use the standard ports.

-----------------------
Last Wiki Answer Submitted:  Dec 22, 2011  6:53 PM (GMT)  by  Carlosdl   60,255 pts.
To see other answers submitted to the Answer Wiki View Answer History.
Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _




 

…explain me the differene between port number 10022 and 22 for implementing SFTP transfer.

The difference is that it uses port 10022 in one case and port 22 in the other.

However, are you asking about the difference for the client? …or for the server? Depending on which way you’re looking at it, there is a potentially significant difference.

Tom

 66,990 pts.

 

The difference is 10000 ;-)

However, are you asking about the difference for the client? …or for the server?

The client has to use the port configured in the server (unless something in between makes the necessary port translation/forwarding), so if the ‘prefered’ word was mentioned, I think the OP was most likely refering to the server.

Anyway, I don’t think there is a significant difference between the ports themselves. The main difference would be that 22 is a ‘well-known’ port, and 10022 is a ‘registered port’, but as long as no other service is using them in the same host, they would work the same. Of course, there would be a difference in the configuration of the server (and the clients), but that is probably not what the OP wanted to ask.

 60,255 pts.