You are not logged in.

#1 2010-02-24 19:31:56

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181
Website

[SOLVED] ssh problem turns out to be my own stupid fault with firewall

When I first installed arch I had a bit of trouble with rsync and now I am having a lot of trouble with ssh.
I can ssh out of my arch machine fine into my ubuntu box but I cannot ssh from my ubuntu machine to my arch machine.
I cannot use rsync from my ubuntu box to arch either but it works fine the other way round.

When I try the cursor just flashes and nothing happens.
Ater 5 minutes or so I get the message

ssh: connect to host 192.168.1.20 port 22: connection timed out

I have NOT set up password-less ssh.

I have tried disabling the firewall I have in arch (GUFW) which changed nothing.
(ssh is specified as an exception in the firewall list.)

I have tried re-installing openssh and I do have sshd specified in my daemons array.
I have tried starting sshd manually and it starts without errors.

I have tried the following:
( the username is the same on both machines)

ssh 192.168.1.20
ssh 192.168.1.20 -l llawwehttam
ssh llawwehttam@192.168.1.20

And get nothing.

I get a ping signal fine though.

EDIT: Before anyone mentions it

my /etc/hosts.allowlooks like:

# let everyone connect to you
sshd: ALL

and my /etc/hosts.deny:

ALL: ALL: DENY

Last edited by llawwehttam (2010-02-24 20:02:09)


NERD in Training :: Please be Gentle tongue

Offline

#2 2010-02-24 19:51:32

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,552

Re: [SOLVED] ssh problem turns out to be my own stupid fault with firewall

Did you actually start sshd? It doesn't run by default just because you install it.

Offline

#3 2010-02-24 19:56:30

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181
Website

Re: [SOLVED] ssh problem turns out to be my own stupid fault with firewall

Yes. I added to to the DAEMONS array and tried manually starting it with

llawwehttam@Deadlock:/etc/ssh$ sudo /etc/rc.d/sshd restart
:: Stopping Secure Shell Daemon                                      [DONE] 
:: Starting Secure Shell Daemon                                      [DONE]

I also see it start on boot.

Last edited by llawwehttam (2010-02-24 19:56:49)


NERD in Training :: Please be Gentle tongue

Offline

#4 2010-02-24 20:01:21

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181
Website

Re: [SOLVED] ssh problem turns out to be my own stupid fault with firewall

Sorry about that......... Its fixed and the problem was me not being careful enough.

I feel very stupid but the problem was with the firewall.
Port 22 was set as Deny NOT allow.

When I added the rule I didn't check to see.

Sorry again if I wasted anyones time.


NERD in Training :: Please be Gentle tongue

Offline

Board footer

Powered by FluxBB