[Ilugc] ssh connection: port 22 problem

  • From: jemenisuresh@xxxxxxxxx (Tha.Suresh)
  • Date: Fri, 1 Apr 2011 15:11:19 +0530

On Thu, Mar 31, 2011 at 8:55 PM, <lug at chandrashekar.info> wrote:


Hi Suresh,

 USER=root ; COMMAND=/sbin/service sshd start
 Mar 31 18:30:48 mercury sshd[24192]: Received signal 15; terminating.
 Mar 31 18:32:00 mercury sshd[1752]: Server listening on 0.0.0.0 port
2222.

Looks like /etc/ssh/sshd_config is mis-configured to listen on
port 2222 instead of the default SSH port 22. Try editing the
sshd_config file and uncomment the line that says "#Port 22"
by removing the leading # on that line. Save the file, do
'/etc/init.d/sshd start' and check the logs.


yeah sir, i changed it. Now it works. :)


Also, run the command 'ss -l' as root user and check if you can
find a line that has something like ':::ssh' listed under
'Local Address:Port' column.

Cheers,
Chandrashekar.

--
http://www.chandrashekar.info/
http://www.slashprog.com/
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




-- 
Regards,
Tha.Suresh

Cooool Linux Tips & Tricks,
http://gnutips.wordpress.com

My experiences with Linux are here,
http://thasulinux.wordpress.com

Other related posts: