You are not logged in.

#1 2011-02-02 21:29:17

vanvalium
Member
From: Austria
Registered: 2010-10-09
Posts: 86

ssh connection refused

Although I find alot of topics on this, I haven't found an answer yet.

I want to ssh from my arch box to my debian box (trying to learn server-related things)
but I always get the same error

ssh: connect to host host+domain port 22: Connection refused

this site says port 22 is open: http://www.canyouseeme.org/

I can ping my debian box (it also has a static ip if that matters), ssh localhost works, I put sshd:ALL in my hosts.allow, netstat says sshd is listening to the ports

Haven't used ssh before yesterday so I'm kinda clueless
Help will be highly appriciated

Offline

#2 2011-02-02 21:59:42

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: ssh connection refused

Did you turn on ssh connections for all in /etc/hosts.allow ??

sshd: all

Edit:  Never mind -- I should read more closely

Last edited by ewaller (2011-02-02 22:07:59)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-02-02 22:15:23

wudu
Member
Registered: 2010-03-08
Posts: 83

Re: ssh connection refused

same for me
big_smile

Last edited by wudu (2011-02-02 22:16:30)

Offline

#4 2011-02-02 22:29:34

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: ssh connection refused

I've just written this:
https://wiki.archlinux.org/index.php/SS … ed_Problem

See if that helps smile

Offline

#5 2011-02-02 22:54:02

vanvalium
Member
From: Austria
Registered: 2010-10-09
Posts: 86

Re: ssh connection refused

thanks, looked through it
seems my router is the problem, but I don't really know how to fix this
nat giving my trouble

Last edited by vanvalium (2011-02-02 22:55:18)

Offline

#6 2011-02-03 06:50:25

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: ssh connection refused

If you know what NAT is, I assume you know how to forward traffic?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2016-11-14 10:18:12

zi
Member
Registered: 2016-11-14
Posts: 1

Re: ssh connection refused

I've solved this problem by changing port. You can find the port your ssh listening to by running "ss -tnlp". Then, try again "ssh <host> -p <port>"

Offline

#8 2016-11-14 11:11:20

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: ssh connection refused

@zi,

Please do not bump old threads.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.

Offline

Board footer

Powered by FluxBB