let us consider the case with System A and System B.  You are trying
to ssh from A -> B and I assume that you have run the nmap on system
B's IP address then do the following to get connected.

$ssh 192.168.1.9 -p 2222

You have to edit you sshd config file on System B to change the port
number to original 22.

#grep port <from your sshd.conf file>  and change the port back to 22
if you want to.

#service sshd reload

Then you should be able to connect to system B.

If you try to increase the verbosity of the output

#ssh -vvvv [email protected]

and paste the output.

On Mar 31, 9:43 am, "Tha.Suresh" <[email protected]> wrote:
> On Thu, Mar 31, 2011 at 6:59 PM, PARTH MONGA <[email protected]> wrote:
> > ssh running on 2222 and with tag of unknown service ..
>
> I tried this when i made a search in google and modified the file.But i
> restored the backup file and the output is same as before.
>
> [root@mercury ~]# netstat -ltnp | grep 22
> tcp        0      0 0.0.0.0:2222                0.0.0.0:*
> LISTEN      1752/sshd
> tcp        0      0 192.168.122.1:53            0.0.0.0:*
> LISTEN      2008/dnsmasq
>
>
>
> >  which os/build
>
> I'm using Fedora 14
>
> --
> Regards,
> Tha.Suresh
>
> Cooool Linux Tips & Tricks,http://gnutips.wordpress.com
>
> My experiences with Linux are here,http://thasulinux.wordpress.com

-- 
LUG@IITD - http://lug-iitd.org/Footer

Reply via email to