LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can ssh localhost but not from network? (https://www.linuxquestions.org/questions/linux-software-2/can-ssh-localhost-but-not-from-network-155754/)

jon_k 03-10-2004 04:43 AM

Can ssh localhost but not from network?
 
I can SSH localhost from a terminal on the box itself (it's knoppix hdinstall)

But i can't ssh TO the box from anywhere in the network, acts like connection refused

I can't ping it either....

But I know it's on the router cause i see its hostname from router config(192.168.0.5 KNOPPIX )

It sounds like a firewall but knoppix has no graphical config utility for firewall settings so I don't know if thats it or not.


I don't know the terminal commands for doing this...




Also, how will i enable ftp and apache to start automatically on boot?


-- THANK YOU FOR YOUR HELP

aeolus 03-10-2004 04:59 AM

do you setup firewall?
Maybe you can run "lokkit" on the redhat.

aacovergaauw 03-10-2004 05:06 AM

First i think you need to check whether sshd is running on your knoppix box.

jon_k 03-10-2004 05:14 AM

sshd is running i can ssh to localhost fine


I found out something -- i can't ping it from the network or anything (pingint it from windows box does not work)


I do however see it in the router config as being connected



I can't get OUT of the linux box either -- I can't connect to google it says unknown host..


hopefully someone can help?

thanks!

aeolus 03-10-2004 05:42 AM

you can cansel firewall setting,expmple as /etc/init.d/iptables stop

aeolus 03-10-2004 05:44 AM

btw,can you correctly setup your DNS?

aacovergaauw 03-10-2004 05:49 AM

Sorry, i misread your first post. You wrote you could ssh to localhost. So in that case sshd must me running.

You can check your /etc/rc.d directory to see whether Knoppix started a firewall. It seems unlikely to me because it probably started ssh automatically as well (or did you start it manually?) . It doesn't seem logical to me to start sshd and block that port with a firewall.

So probably you have another problem.

What does your ifconfig say? Is the route to your gateway (the router) setup properly?

Can you connect to i.e. google using it's ip number instead of connecting to 'google.com' ? If you can access the google site with the ip number but you unable to get to it with only the name, than you have a problem with your DNS.

PS: i'm not no expert at all but i encoutered the same kind of problems a lot of times before, so maybe i can help.

jon_k 03-10-2004 06:47 AM

Great news, i reinstalled knoppix and it's working like a charm!


Now, how can I enable ftpd /httpd and such on start?

The following commands don't work

# service sshd start
# chkconfig sshd on

and locate doesn't bring any results... any ideas?

THANKS FOR ALL OF YOUR HELP! :)


All times are GMT -5. The time now is 10:27 PM.