Do you have a question? Post it now! No Registration Necessary. Now with pictures!
August 9, 2005, 2:41 pm
rate this thread
I have a fedora box configured with IPTABLES and an entry to allow
SSH2 to pass through.
When I check my system logs I see that user X has connected
successfully on port 2256 via SSH2.
I thought that the user would connect via port 22 and not this port.
When I run an nmap localhost while i'm connected to the system via
ssh2 I do not see any other port, but the ports for the various apps I
have allowed to start.
Can somebody explain why my log would say they are connecting to
another port via the port for SSH2?
Thanks for an explanation.
Re: SSH question
The port at the server has to be 22, but the client can use
any suitable port (often called an ephemeral port). Did you
look at the client's port, instead of the server's port?
A TCP connection (which SSH runs on) is identified by the
four numbers: client port, client IP, server port and server IP.
If any of the four numbers changes, it's a different connection,
so it is possible to have several client connections running
on the same server port.
tauno voipio (at) iki fi
- » Cloud Ace Technologies is offering Implementation Services on Cloud Computing, Cloud Serv...
- — Newest thread in » Linux Security