
…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

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.

















