LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2012, 02:51 PM   #1
kumarsalmeda
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Rep: Reputation: 0
Question SSH login issue


Am unable to login into my remote server using shh, how can i check shh services running or not and 22 port listen status
am trying to use nmap and telnet can you give exactly syntax
can anybody please help on this

Thanks
 
Old 08-21-2012, 03:10 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
nmap -22 IP

you can not telnet to port 22, that is port 23.

the router the remote computer is behind has to have port 22 forwarded to the LAN IP of the computer you are trying to connect to, and in addition to that the computer must be properly configured to allow connection via ssh and sshd must be running.
 
Old 08-22-2012, 11:19 AM   #3
kumarsalmeda
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lleb View Post
nmap -22 IP

you can not telnet to port 22, that is port 23.

the router the remote computer is behind has to have port 22 forwarded to the LAN IP of the computer you are trying to connect to, and in addition to that the computer must be properly configured to allow connection via ssh and sshd must be running.
=========
Dear Friend,

Some time the namp is not working or disabled or blocked that command,
how can i resolve the issue, how can i know problem of remote server how can i connect
how can i check port 22 is listening or not and how can check sshd services in remote server
can you please help me this
Thanks
 
Old 08-22-2012, 07:25 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Part of the problem may be that you have several typos in your posts; if you do this on the cmd line, it will appear as if the cmd doesn't exist.
If you can login to the ssh server eg at the console, you check if its running ssh
Code:
netstat -tanp | grep 22
check the firewall
Code:
iptables -nvL
 
Old 08-25-2012, 07:19 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You can use telnet as a debugging tool.
telnet <server> 22
The second number is the port number. If you can reach the server and the sshd server is running, you will see a message about the version of openssh. If this is the case, try using:
ssh -vv user@host
The -vv option will provide debug information on both sides.

If the telnet command doesn't make a connection, try pinging the server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ssh-keygen for auto ssh login not working R00ts Linux - Software 26 09-23-2012 02:40 PM
[SOLVED] SSH login with public key issue ZAMO Linux - Security 3 07-02-2010 04:36 PM
[SOLVED] SSH login problem for additional users after password-less login setup uncle-c Linux - Newbie 3 02-10-2010 01:51 PM
SSH Problem - Can't login using Hostname, can login using ip address jqweezy Linux - Networking 7 01-26-2009 03:21 PM
Question about using the ssh login without password issue icammy Linux - Enterprise 2 04-03-2007 07:08 AM


All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration