Cant ssh, but ping works


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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
# 3  
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  
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  
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  
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
Login or Register to Reply

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

More UNIX and Linux Forum Topics You Might Find Helpful
PING to AIX works but TELNET FTP SSH doesn't work
filosophizer
root@PRD /> rsh DR KFAFH_DR: protocol failure due to unexpected closure from server end root@PRD /> telnet DR Trying... Connected to DR. Escape character is '^]'. Connection closed. root@PRD /> ftp DR Connected to KFAFH_DR. 421 Service not available, remote server has closed connection...... AIX
2
AIX
Passwordless SSH works, scp does not
corrado33
I know the "how to setup passwordless SSH" question is asked probably 5 times a week. I know how to setup passwordless SSH, it's not tough, however after reinstalling linux on my server, I found a problem. I could SSH into my server just fine, no password required, however SCP still required a...... UNIX for Dummies Questions & Answers
4
UNIX for Dummies Questions & Answers
Network issue on multinic. Unable to ping a host from One NIC but other works
khaniqshahid
Dear, I hope you all will be ok. I have an issue with Solaris box running on x86 Blade. I am unable to ping a node neither traceroute. I am able to do traceroute from oce0:6 port which have IP and subnet of same type which oce0:1 has. details are as follows: Problem: root@rinams02:/#...... Solaris
3
Solaris
SCP not working while SSH works
posix
Dear expert, I have gone through the thread A similar error arising for me , please find the debug logs. I have tried from another server to push a file using scp but not working for me. i am using SunOS SUNW,SPARC-Enterprise machine. Thanks... Solaris
5
Solaris
script to monitor if ssh works.
nua7
Hi All, I have a setup of around 100 servers with atleast 10 users on each box.The public key from one server has been created and updated on all other servers , so that passwordless login can be done from any use. We recently had a problem that ssh keys on one of the system was changed and...... UNIX for Advanced & Expert Users
2
UNIX for Advanced & Expert Users