LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-09-2011, 04:35 PM   #1
mlnm
Member
 
Registered: Jun 2011
Posts: 96

Rep: Reputation: Disabled
putty connection refused


Dear friends ,
I was trying to connect from windows (putty) to Linux server but when i say open , putty shows a blank screen and after some seconds "connection refused" this error appears.
 
Old 08-09-2011, 04:42 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,766

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
@ Reply

Hi there,

Welcome to LQ!!!

Two main reason for getting connection refused are:

1. Either the service is not running. Check if sshd is running on the target server. You have not mentioned the distribution otherwise I would have given you the command to check the status.

2. Or, your target server firewall is not allowing the connection on ssh port which is port 22.

In short you need to check the status of the service whether it is running or not. And you have to check whether the firewall on the target server is allowing connection on port 22.

You can experiment a bit by disabling firewall on the target server to check if it is a firewall issue.
 
Old 08-09-2011, 09:07 PM   #3
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,435

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
In a terminal, the command ps -A | grep sshd will show whether the ssh daemon (the ssh server process to accept a connection) is running.

It should return something like this; in this case, the number is the process ID and sshd is the name of the process:

Code:
ps -A | grep sshd
 2520 ?        00:00:00 sshd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd not working: Connection attempt failed with "ECONNREFUSED - Connection refused davidlu766 Linux - Server 7 05-03-2010 08:34 PM
Putty fatal error: Network error: connection refused (ubunty server 6.06.1) gerardnijboer Ubuntu 2 03-18-2010 03:46 PM
[SOLVED] Putty connections "Connection refused" ...easy answer? KZeeSoft Linux - Server 21 03-10-2010 09:34 AM
Connection Refused in PuTTy and SQLyog can not connect either... mtlhd Linux - Networking 2 02-27-2010 04:58 PM
SSH PuTTy gives "connection refused" Sathington Linux - Networking 5 03-18-2004 05:10 AM


All times are GMT -5. The time now is 01:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration