LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ssh for newbe (https://www.linuxquestions.org/questions/linux-server-73/ssh-for-newbe-551553/)

bennythepitbull 05-05-2007 02:01 PM

ssh for newbe
 
I am running slackware 11.0 I can not seem to connect to SSH when I attempt to connect to it by the means of using the ip addres assigned to me by verizon:
Here is the error I am getting:

root@LINDOWS:~# ssh 71.161.125.135 -l root
ssh: connect to host 71.161.125.135 port 22: Connection refused
root@LINDOWS:~#

37w versa link is the device verizon gave me. It is an all in one wirless router with 4 laN ports for eth0 - -
I am running hard wired not wirless --
In kde I lok at the runing processes and I see that sshd is running (it has a little ghost icon.)
I did nothing to the config scrips they are set as default would set them in slackware 11.0.

When I run this command I can connect:
ssh 192.168.1.47 -l root

That is all I know so far:

Any takers on where I should go from here?

acid_kewpie 05-05-2007 02:10 PM

you're trying to presumably ssh to the router, not the computers behind it... http://portforward.com

bennythepitbull 05-05-2007 02:13 PM

should have mentioned this
 
I did config the router to allow 22 and it points to 192.168.1.47
Is this what you mean:
to explain furhter:
The router has a section to allow a service It has a drop down menu that does have SSH and it knows it is on port 22. so I add this service I then tell it to direct the service to IP address 192.168.1.47 .

I am new at this so any more help would be great.

acid_kewpie 05-05-2007 02:19 PM

ok well often routesr also have to have firewall exceptions added for those ports too, is that the case for you? if not, run "tcpdump -vn port 22" on the ssh server and try to connect to it. if you see SYN packets appearing in the tcpdump output, your router has done it's job. if not, it hasn't.

bennythepitbull 05-05-2007 02:25 PM

should have mentioned that too
 
The router has a firewall tab:
I checked disable .

Any other ideas --


It seems like it should just work but it hates me, I think!


Could it be Verizon?

acid_kewpie 05-05-2007 02:37 PM

i have already given you other ideas with tcpdump.

bennythepitbull 05-06-2007 10:29 AM

still will not let me here are my results
 
root@LINDOWS:~# tcpdump -vn port 22
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes

0 packets captured
0 packets received by filter
0 packets dropped by kernel
root@LINDOWS:~#

acid_kewpie 05-06-2007 10:49 AM

right, so with no packets seen, the router can't be correctly forwarding the data.

bennythepitbull 05-07-2007 08:49 AM

it takes forever and a day but...
 
I left the dump running for like an hour then here is what I get :
IF I leave it run for say 5 minutes UI get all zero's



157 packets captured
314 packets received by filter
0 packets dropped by kernel


Yet when I ssh to my IP address I get connection refused --

acid_kewpie 05-07-2007 08:56 AM

well it's who those other connections are ... possibly just you connecting on the lan? if they don't appear instantly, they didn't exist.

bennythepitbull 05-08-2007 07:12 PM

all set thanks Chris you were most helpful
 
It seems as if I can only log in away from home I think this is a verizon thing


All times are GMT -5. The time now is 12:01 AM.