LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-10-2004, 04:43 AM   #1
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
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
 
Old 03-10-2004, 04:59 AM   #2
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
do you setup firewall?
Maybe you can run "lokkit" on the redhat.
 
Old 03-10-2004, 05:06 AM   #3
aacovergaauw
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Rep: Reputation: 0
First i think you need to check whether sshd is running on your knoppix box.
 
Old 03-10-2004, 05:14 AM   #4
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Original Poster
Rep: Reputation: 30
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!
 
Old 03-10-2004, 05:42 AM   #5
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
you can cansel firewall setting,expmple as /etc/init.d/iptables stop
 
Old 03-10-2004, 05:44 AM   #6
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
btw,can you correctly setup your DNS?
 
Old 03-10-2004, 05:49 AM   #7
aacovergaauw
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Rep: Reputation: 0
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.
 
Old 03-10-2004, 06:47 AM   #8
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Original Poster
Rep: Reputation: 30
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!

Last edited by jon_k; 03-10-2004 at 07:03 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh login attempts from localhost?! sovietpower Linux - Security 2 05-29-2005 01:19 AM
SSH localhost is fine, IPs won't connect zzero Linux - Networking 4 03-24-2004 01:00 PM
SSH To IP Address Fails - Localhost Works ViragoRider Linux - Newbie 7 10-03-2003 07:19 AM
can only connect with ssh to localhost Yaukuai Linux - Security 7 10-12-2001 09:08 AM
unable to connect with ssh except to localhost Yaukuai Linux - Software 0 09-30-2001 06:42 AM


All times are GMT -5. The time now is 03:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration