Web Hosting Talk







View Full Version : Can't SSH to box..


LCHwebHost
03-23-2004, 01:48 PM
This is strange I can do everything on my server but access it via SSH and send outgoing email. (I can recieve email, use httpd etc etc.). Any ideas what is causing this? Other people can access SSH from other computers but mine is blocked for some reason (when I try to open a connection it just closes it right away and no message pops up).

eniki
03-23-2004, 03:09 PM
Who is your ISP?

Do you know if they block certain ports?

joesmoh
03-23-2004, 11:31 PM
Did you block all IPs including your own? You might have to tell the datacenter to delete your host.deny list.

LCHwebHost
03-24-2004, 03:02 AM
I can login to it if I login to another server and then ssh to the other box, but I can't login directy. How do i delete the host.deny list?

My ISP is comcast, I never had this problem before (I used to be able to SSH to that box).

FeBox
03-24-2004, 07:58 AM
You can do one of the following:

pico /etc/host.deny
Find your IP and delete it.

OR

You can see if your firewall has you blocked in its tables. You are most likely running iptables, to flush these tables, run this command:
iptables --flush

Let me know how it goes. :)

LCHwebHost
03-24-2004, 01:23 PM
pico /etc/host.deny
Find your IP and delete it.

Doesn't exist, no host.deny file exsits on the server.

OR

You can see if your firewall has you blocked in its tables. You are most likely running iptables, to flush these tables, run this command:
iptables --flush

Ran and still can't connect, anyone else have any clues

BaddaBing
03-24-2004, 02:21 PM
I believe it's /etc/hosts.deny not /etc/host.deny

LCHwebHost
03-24-2004, 10:05 PM
Hi,
My IP is not listed in hosts.deny.. hmm any other ideas.

rkuris
03-24-2004, 10:55 PM
Check your server logs. They may provide a clue as to what the problem is.

/var/log/messages or /var/log/secure

Steven
03-24-2004, 10:58 PM
do you have BFD installed?

HOUSCOUS
03-24-2004, 11:52 PM
If your IP is not in the deny file, could it be the RSA key in your box has been destroyed or corrupted?

About the mail thing. Recieving email is using pop (or pop3), and sending out is going to use stmp, so......

LCHwebHost
03-24-2004, 11:56 PM
Alright it says this

in /var/log/secure

It says this when I try to connect

Mar 24 21:53:15 ns9 sshd[26486]: refused connect from <ip removed>

Any idea how I can get it to unblock my IP?

HOUSCOUS
03-25-2004, 12:06 AM
Are you using an static IP address? If you are using dynamic IP, restart your local box to get a new dynamic IP. Are you using Linux or Windows?

Brightadmin
03-25-2004, 01:49 AM
Hi,

As suggested by all forum members, please check if your IP is present in hosts.deny file also whether any firewall is blocking your IP. In case your ISP is blocking the port you will connect to it.

Regards,

Bright:)