LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-27-2014, 07:44 PM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
SSHd is running, but cant connect "Network error: Connection refused"


Hi, i checked on rhel VPS is running sshd
(service ssh status)

But i cant connect via putty: "Network error: Connection refused"

Please which log file in my centos rhel linux i need to watch or what are steps to do to discover cause?
 
Old 03-27-2014, 09:49 PM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
1. ping server IP from your remote PC (sometime ping may not be success because of ICMP echo settings)
2. telnet to port 22 from your remote PC
If both success you should be able to SSH to the Server.
If not,
Make sure sshd listening on which port (by default 22)
Check the iptables, /etc/hosts.deny

you can check the /var/log/messages, /var/log/secure or /var/log/audit/audit.log
 
1 members found this post helpful.
Old 03-28-2014, 03:32 AM   #3
postcd
Member
 
Registered: Oct 2013
Posts: 527

Original Poster
Rep: Reputation: Disabled
Thank you, the issue was in /etc/ssh/sshd_config
where there was set some unusual ssh port (not 22).
 
Old 03-28-2014, 04:03 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Ya, for some security reason people use some unusual ports..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JAVA: SSL Telnet connection "connection refused: connect" error kshaffer85 Programming 1 12-14-2013 07:06 AM
"telnet: connect to address 127.0.0.1: Connection refused" bushwacker03 Linux - Newbie 6 03-04-2013 08:42 PM
anybody familiar with this error "Xlib: connection to ":0.0" refused by server" ? rajnivanza Linux - Newbie 3 03-22-2009 05:10 PM
Why do I get: "Network error: Connection refused" cucolin@ Linux - Networking 4 07-20-2006 01:09 PM
bind and named and "rndc: connect failed: connection refused" coffee9876 Linux - Networking 3 12-16-2003 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration