LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connection Refused in PuTTy and SQLyog can not connect either... (https://www.linuxquestions.org/questions/linux-networking-3/connection-refused-in-putty-and-sqlyog-can-not-connect-either-792008/)

mtlhd 02-27-2010 02:02 PM

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.)

fylnq 02-27-2010 02:06 PM

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

mtlhd 02-27-2010 04:58 PM

Quote:

Originally Posted by fylnq (Post 3879251)
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?


All times are GMT -5. The time now is 08:05 AM.