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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-21-2012, 01:51 PM
|
#1
|
LQ Newbie
Registered: Mar 2010
Posts: 3
Rep:
|
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
|
|
|
08-21-2012, 02:10 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
|
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.
|
|
|
08-22-2012, 10:19 AM
|
#3
|
LQ Newbie
Registered: Mar 2010
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by lleb
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
|
|
|
08-22-2012, 06:25 PM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
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
|
|
|
08-25-2012, 06:19 AM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
All times are GMT -5. The time now is 11:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|