?
Solved

Cannot connect to ssh server

Posted on 2014-07-21
12
Medium Priority
?
438 Views
Last Modified: 2014-09-07
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.
0
Comment
Question by:peter-cooper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
12 Comments
 
LVL 14

Expert Comment

by:comfortjeanius
ID: 40209674
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

0
 

Author Comment

by:peter-cooper
ID: 40209770
Thank you for your comment. However, I cannot connect with ssh so cannot run any commands. Can I do from plesk?
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 40209941
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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 5

Expert Comment

by:Sean Jackson
ID: 40209950
Do you not have console access to the server?
0
 

Author Comment

by:peter-cooper
ID: 40210961
I cannot see from with plesk where that app is. I have the ssh java term installed.
0
 
LVL 9

Expert Comment

by:Sandeep Gupta
ID: 40213794
You need to get console of the firewall and need to check if ssh is dis-allowed there.
0
 

Author Comment

by:peter-cooper
ID: 40216467
@Sandeep Sorry, I do not understand your comment. Thanks
0
 
LVL 5

Expert Comment

by:Sean Jackson
ID: 40217447
Are you able to access the box you're trying to work on directly?  I.E. -- Without using Plesk?
0
 

Author Comment

by:peter-cooper
ID: 40217470
No I am on dynamic cloud server with 1and1.
0
 
LVL 5

Expert Comment

by:Sean Jackson
ID: 40217488
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.
0
 
LVL 27

Accepted Solution

by:
skullnobrains earned 2000 total points
ID: 40265077
give the complete error message. this can be caused by many things, and the machine's local firewall is quite unlikely (but you can make sure port 22 is open to the wan)

on idea could be the "password" authentication mathod which is deactivated in most distributions and used by quite a few ssh clients
0
 

Author Closing Comment

by:peter-cooper
ID: 40308464
Many thanks
0

Featured Post

Ransomware Attacks Keeping You Up at Night?

Will your organization be ransomware's next victim?  The good news is that these attacks are predicable and therefore preventable. Learn more about how you can  stop a ransomware attacks before encryption takes place with our Ransomware Prevention Kit!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question