Skip to contentSkip to conversation

I thought ssh is port #22 ?!!

DISCUSSION Fajar Priyanto 2 participants 2 messages Apr 1, 2004

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,
I'm not really sure about this. I thought ssh is made in port #22? When I made a ssh session into my server, /var/log/messages showed this:

Apr  1 09:20:20 server2 sshd[2711]: Accepted password for root from 

192.168.0.234 port 32873 ssh2

Why did it use port #32873?
Is there something wrong with my ssh or firewall?
TIA,
- --
Fajar Priyanto | Reg'd Linux User #327841 | http://linux.arinet.org
08:31:42 up 36 min, Mandrake Linux release 9.2 (FiveStar) for i586 public key: https://www.arinet.org/fajar-pub.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAa3EYkp5CsIXuxqURAluBAKCNiyg8+KXYDu/JuZghSVMXvfrjMgCdG7O2 Bb4SQcbOiAqALl1o9yQ5H1k=
=4uUZ
-----END PGP SIGNATURE-----

#1 lore raw

32873 is the SOURCE port of the connection, not the DESTINATION port, which defaults to 22

Quoted 25 lines · Fajar Priyanto

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,
I'm not really sure about this. I thought ssh is made in port #22? When I made a ssh session into my server, /var/log/messages showed this:

Apr  1 09:20:20 server2 sshd[2711]: Accepted password for root from 192.168.0.234 port 32873 ssh2

Why did it use port #32873?
Is there something wrong with my ssh or firewall?
TIA,
- --
Fajar Priyanto | Reg'd Linux User #327841 | http://linux.arinet.org
08:31:42 up 36 min, Mandrake Linux release 9.2 (FiveStar) for i586 public key: https://www.arinet.org/fajar-pub.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAa3EYkp5CsIXuxqURAluBAKCNiyg8+KXYDu/JuZghSVMXvfrjMgCdG7O2 Bb4SQcbOiAqALl1o9yQ5H1k=
=4uUZ
-----END PGP SIGNATURE-----