LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   newbie/ssh/slackware - questions (https://www.linuxquestions.org/questions/slackware-14/newbie-ssh-slackware-questions-126050/)

renato167 12-15-2003 11:08 AM

newbie/ssh/slackware - questions
 
Hi All,

I thought I posted this earlier but it's not showing up so I'll try to remember the output from the commands I initiated from home earlier.


Problem.

I can't ssh into my Slackware 9.1 box from Windows 2000.

Slackware has squid running w/ basic authentication. Everything ok on that end.

I can ping slackware from windows via Dlink router/access point

Network is 192.168.0.0/255.255.255.0

Dlink is 192.168.0.1/24

Windows 192.168.0.102/24
Slackware 192.168.0.100/24

Can't ping windows from slackware.

Can't ping yahoo from slackware either but windows has complete internet access w/ slackware used as a proxy

iptables has not input

iptables -L

/etc/hosts.allow file contains

sshd : 192.168.0.0/255.255.255.0

netstat -nlp shows sshd listening

i can ssh slackware using localhost command

ssh localhost

when i try pinging yahoo, I receive unknown host error.

error is simple connection refused on port 22.

Any ideas on what I'm doing wrong?

Tinkster 12-15-2003 01:19 PM

What's the output of
route
on the slackware box?

Did you specify the slackbox
as default gateway on the evil
operating system?


Cheers,
Tink

renato167 12-15-2003 01:40 PM

the evil system(lol) has

192.168.0.102
255.255.255.0
192.168.0.1 (default gw)

slackware has

192.168.0.100
255.255.255.0

route command shows 192.168.0.1 has default gw


i find it weird that i can ping from windows the local net and the Internet, along with web browsing with the slackware as my squid server.

However, i can't ping the local net nor the Internet from slackware.

Tinkster 12-15-2003 02:19 PM

I don't know ... maybe windohs is running a
firewall...

You listed /etc/hosts.allow....
What does hosts.deny look like?
If you were denying ALL:ALL and
only permitted SSH ....

Are you using names or IP's trying to ping
hosts on the internet?

Does name resolution work on Slack?



Cheers,
Tink

renato167 12-15-2003 02:41 PM

well, i've turned off zone alarm on the windows box. host.deny doesn't have any hosts listed. I'm ping via www.cisco.com and slack returns host unknown. i'm at work now so i can't troubleshoot it but perhaps when i get home i'll look at the resolv.conf file.

but why can't i ping the windows box? it's on the same segment(lan)

route has default gw of my dlink router. i can ping slack using the ipaddress provided from windows.

Tinkster 12-15-2003 03:26 PM

Again, are you pinging it by a name, or the IP?

As for the outside world, what's the /etc/resolv.conf
like?


Cheers,
Tink

renato167 12-15-2003 04:39 PM

I ping slackware box from windows using ip address, ie.

ping 192.168.0.100

reply from 192.168.0.100
reply from 192.168.0.100
""
""

I then, from windows ping www.yahoo.com and I get response as well.


Then when I log on my slackware, I ping using either hostname or ip address but no response from local network nor the Internet.

regards,

renato

Tinkster 12-15-2003 04:41 PM

Odd ... what's the output of
ifconfig
on the slack box?

Cheers,
Tink

renato167 12-15-2003 04:48 PM

ifconfig shows eth0

192.168.0.100 255.255.255.0

route shows

192.168.0.1 as my default gateway....

Tinkster 12-15-2003 04:57 PM

Please post the entire output of
ifconfig?

Cheers,
Tink

renato167 12-15-2003 05:15 PM

doh!

i'll have to reply later on. hopefully you'll be able to respond thereafter.
I'm at work and thus, unable to print output from said commands.

thanks for your help.

ciao..


regards,

renato

renato167 12-16-2003 02:20 PM

tinkster,

i figured out the problem per your suggestion.

it was the resolv.conf file.

nameserver had my domain which isn't even registered. i used my dlink routers ip address in place of that domain and joila!!!

aok.


thanks a million...

Tinkster 12-16-2003 02:49 PM

Pleasure mate ... :}


Was it worth an affero? ;)


Cheers,
Tink

renato167 12-16-2003 04:44 PM

forgive me for being a dunce on the subject matter but what is
an affero?

Tinkster 12-16-2003 07:31 PM

Just a nerd-rating thing :)


Click the button at the bottom of my
post that says affero :)
The rest is quite self-explanatory.


Cheers,
Tink


All times are GMT -5. The time now is 09:59 AM.