Re: I thought ssh is port #22 ?!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 01 April 2004 4:14 pm, Martinez, Michael wrote:

> Port 32873 is the return port on the ssh client.
>
> Here's how it works. The server listens on port 22. The client opens a
> connection to the server, and tells the server which return port to use. If
> you do "netstat -an" you will see the server talking on port 22, and the
> client talking on some high numbered port like 32873. The high number port
> used is random. It will change from one session to the next.
>
> This is true not just for ssh - it is true for most tcp applications.

I'd say it's true for all TCP applications, and most UDP applications.

There are some TCP applications (FTP being the most common example) where a 
*second* connection gets opened up on different ports, but that one works in 
exactly the same way as the first - and they each obey the above description.

Regards,

Antony.

-- 
The difference between theory and practice is that in theory there is no 
difference, whereas in practice there is.

                                                     Please reply to the list;
                                                           please don't CC me.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux