Link to home
Start Free TrialLog in
Avatar of peter-cooper
peter-cooper

asked on

Cannot connect to ssh server

I am having trouble connecting to my ssh server. It responds with a lengthy error message about no network etc. but it is the last message that concerns me:

   
Sometimes, such troubles can be caused by a misconfigured firewall.

How can I check the firewall if I cannot connect to ssh? I am running plesk 11.5 control panel and CentOS 6. Is this something I can do from plesk?

I can see that the firewall in plesk is set to allow all for ssh, but I cannot see way to disable the firewall to test ssh connection. Can this be done from plesk?

It is driving me absolutely bananas and I would be grateful if someone could shed some light as to how I can proceed.
Avatar of comfortjeanius
comfortjeanius
Flag of United States of America image

What is the output of this this command as root privileges:
Type:
iptables -L

Open in new window


Plus did you input to accept connection with this command:
Type:
iptables -A INPUT -p tcp --dport 22 -j ACCEPT

Open in new window

Avatar of peter-cooper
peter-cooper

ASKER

Thank you for your comment. However, I cannot connect with ssh so cannot run any commands. Can I do from plesk?
Can you run ssh -v command and see what messages you get? the displayed messages will give clue to what could be the problem.

Also, you could check with system admin (root) if sshd is running on the server or not.
Do you not have console access to the server?
I cannot see from with plesk where that app is. I have the ssh java term installed.
You need to get console of the firewall and need to check if ssh is dis-allowed there.
@Sandeep Sorry, I do not understand your comment. Thanks
Are you able to access the box you're trying to work on directly?  I.E. -- Without using Plesk?
No I am on dynamic cloud server with 1and1.
Ugh.

Ok, then start with the box you're coming from.  Check your local firewall.  If there is none, check iptables on the box.  

If you have no other options, maybe fire up some packet captures and see what's happening in WireShark.

Start down these paths, and then let us know what you're finding.
ASKER CERTIFIED SOLUTION
Avatar of skullnobrains
skullnobrains

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Many thanks