News: This forum is now permanently frozen.
Pages: [1]
Topic: ssh login fails  (Read 2456 times)
« on: September 17, 2007, 17:13:32 »
latenite *
Posts: 5

hi @ all

i am using m0n0wall for some time now but after teh install i heve not configured anything.
now i am trying to login into my coputer with ssh.

so i do a:

[19:08:47] [root@debian:~] # ssh root@kaipoeritz.dyndns.org
ssh: connect to host kaipoeritz.dyndns.org port 22: Connection refused

why is the connection refused? I have a firewall rule an wan:

      Proto     Source       Port  Destination     Port     Description     
   *    RFC 1918 networks *    *           *    Block private networks    
   TCP    *              22 (SSH)    *    22 (SSH)ssh allow_all 

I have a inbound rule on NAT:

If     Proto     Ext. port range     NAT IP     Int. port range     Description     
WAN    TCP    21 (FTP)            192.168.3.100    21 (FTP)     
WAN    TCP    22 (SSH)            192.168.3.100    22 (SSH)

and that it.

what will i have to to to loginto my pc?





« Reply #1 on: September 18, 2007, 12:13:08 »
markb ****
Posts: 331

Are you trying to connect from externally or check the external connecting from your LAN.  If it is the latter it will not work as you cannot access a NAT service from the LAN.  please read http://doc.m0n0.ch/handbook/faq-lannat.html
« Reply #2 on: September 19, 2007, 05:47:05 »
cmb *****
Posts: 851

You have source port 22 on your SSH rule. That needs to be any source port. TCP and UDP use a random source port, not the same as the dest port.
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines