Cant ssh, but ping works

Tags
advanced, ca, cant open ssh, ping, ssh, works

 
Thread Tools Search this Thread
# 1  
Old 11-06-2018
Cant ssh, but ping works

I cant ping to some of my machines, but ping works.

I attach screenshots. Port is open and it is 22.
I can't figure out why i cant access.
Image
Image
# 2  
Old 11-06-2018
you can't ping, but ping works?
Hm.......
# 3  
Old 11-06-2018
ping uses the ICMP protocol. It uses no ports. It does not need tcp or ssh.

ping can be blocked, but you gave us no system information.

See this for how ping can be blocked - How to Block Ping ICMP Requests to Linux Systems

Good, complete questions get better answers - we need the UNIX OS and version to give specific help.
# 4  
Old 11-07-2018
The title says the problem is with ssh.
What problem? Connection refused? Connection timed out?
Putty is not ideal for testing it. Do you have telnet?
Code:
telnet remotehost 22

It should directly show the diagnostic message.
# 5  
Old 11-07-2018
Hi tomislav,

You could also run ssh in verbose mode like;

Code:
ssh -v user@host # This is quite Verbose.

or;

Code:
ssh -v -v -v user@host # This is extremely verbose.

I'd bet though that if you are getting nothing back and can ping the IP Address of the server or the Hostname of the server that ssh may not be properly set up.

Regards
Gull04
# 6  
Old 11-07-2018
Quote:
Originally Posted by tomislav91
I cant ssh to some of my machines, but ping works.

I attach screenshots. Port is open and it is 22.
I can't figure out why i cant access.
Image
Image
# 7  
Old 11-07-2018
Cant ssh, but ping works-ssh-jpg

i tried telnet from my win machine and still no lucky.

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Ssh on ping result? MuntyScrunt Shell Programming and Scripting 13 11-28-2018 06:46 PM
SSh works but sftp doesn't for all users except root khalid khanAIB Shell Programming and Scripting 1 02-27-2018 11:33 AM
Not able to ssh or ping a server Vishal_dba AIX 4 12-28-2013 08:43 AM
Passwordless SSH works, scp does not corrado33 UNIX for Dummies Questions & Answers 4 12-20-2013 05:21 AM
Network issue on multinic. Unable to ping a host from One NIC but other works khaniqshahid Solaris 3 05-17-2013 02:30 AM
SCP not working while SSH works posix Solaris 5 12-23-2011 09:54 AM
SSH key works from CMD line not script jeffsandman0035 UNIX for Advanced & Expert Users 6 07-21-2011 03:01 PM
$USER is not set in remsh but works fine via ssh login reldb UNIX for Dummies Questions & Answers 10 01-18-2011 08:44 PM
script to monitor if ssh works. nua7 UNIX for Advanced & Expert Users 2 08-09-2010 05:14 AM
Ping = no, SSH = eventually. Next step? abstractrick Solaris 2 08-03-2010 02:45 AM
scp not working while ssh works bakunin AIX 4 05-13-2010 03:19 AM
SSH login hangs, serial console works ivar.zarans AIX 2 04-13-2010 03:45 AM
could not ssh and ping jegaraman Solaris 11 05-20-2009 08:58 AM
could not ssh and ping jegaraman Solaris 5 10-23-2008 11:28 AM
Can't SSH / ping Linux box !!! csaha Linux 4 12-28-2006 06:34 AM