LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-27-2010, 02:02 PM   #1
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Rep: Reputation: 18
Connection Refused in PuTTy and SQLyog can not connect either...


Hey LQ,

I researched a long while and could not find an answer to these problems, so here I am. I have a debian server running on my home network. I have it running LAMP and it has a live website.

I have samba running and share files with my windows 7 machine, so they do connect.

When i try to use putty it always refuses the connection.
SQLyog tells me off too, but it only cays it cannot connect.

I was checking into SSH, since that is how they are both trying to connect, but I can not find adequate info online for my problem.

I have debian lenny running, I was pretty sure it has ssh running, but i couldnt locate 'sshd'

Is SSH on there by a different name or do I need to install the service.

Thanks in advance guys, I wasn't sure where to go from here.

(ps - getting samba running was a nightmare, but i think it was windoze fault, i tried setting up the debian machine exactly how the guides said to do, but it never could connect and denied passwords constantly, then the next day after a few windows reboots had happened, all of the sudden it worked. Don't know what the deal was there. Could that be instrumental? Sorry I am a web dev and not a networker so this stuff is not my forte.)
 
Old 02-27-2010, 02:06 PM   #2
fylnq
LQ Newbie
 
Registered: Feb 2010
Posts: 23

Rep: Reputation: 16
You diagnose this using the following commands:

Check if sshd is running..
Code:
# ps -ef |grep sshd
# service ssh status
You can start sshd with:

Code:
# service ssh start
Check on what port sshd is running..
Code:
# cat /etc/ssh/sshd_config |grep Port
Check if there are any firewall rules blocking it..
Code:
# iptables -L

Last edited by fylnq; 02-27-2010 at 02:08 PM.
 
Old 02-27-2010, 04:58 PM   #3
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by fylnq View Post
You diagnose this using the following commands:

Check if sshd is running..
Code:
# ps -ef |grep sshd
# service ssh status
You can start sshd with:

Code:
# service ssh start
Check on what port sshd is running..
Code:
# cat /etc/ssh/sshd_config |grep Port
Check if there are any firewall rules blocking it..
Code:
# iptables -L
Baffling. Says it is running under root on port 22, and when i ran iptables i got INPUT, OUTPUT, FORWARD all set to accept. I dont understand why it wouldnt connect, is this a goo dol' windoze problem?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Putty fatal error: Network error: connection refused (ubunty server 6.06.1) gerardnijboer Ubuntu 2 03-18-2010 03:46 PM
ftp:connect:connection refused shihuien Linux - Server 2 11-21-2007 06:33 AM
ftp: connect: Connection refused dn7 Linux - Software 1 09-01-2004 05:51 PM
ftp: connect : connection refused udayan Linux - Networking 4 05-13-2003 11:55 PM
ftp: connect: Connection refused shusseina Linux - Networking 3 05-05-2003 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:55 AM.

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