LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-30-2003, 01:20 PM   #1
phi_rad
Member
 
Registered: Oct 2003
Posts: 30

Rep: Reputation: 15
RedHat 9 SSH Installation Problem


Hi, just installed RedHat 9 few days ago. Its my first time using Linux.

I tried to set-up the SSH so that I can log-in into my RedHat driven computer from another computer running Windows XP. Both computer are connected with ethernet cards, and the RedHat one having an IP of 192.168.0.199

I have enable the sshd service, and I have also added "shd:all:allow" (without the double quotes) into /etc/hosts.allow

I have also downloaded Putty to be the Windows XP SSH client.
But everytime I tried connecting, this message appeared:
"Network error: Connection reset by peer"

Can anyone help me with this?
Do I have to login as root so that the SSH service works?
 
Old 10-30-2003, 01:44 PM   #2
skate
Member
 
Registered: Aug 2003
Location: Bulgaria
Distribution: OpenSuse 10.3, Debian 4.0r3 "Etch", FreeBSD 7.1, Ubuntu
Posts: 210

Rep: Reputation: 30
No its not recommended to be logged as root to use SSHD....wverything is needed to have an OpenSSH (SSH Deamon) installed and correctly installed network..;]~ What are the IP-s of the mashines...and are in everyone mashine correctly added...?Are you sure thet you have been started the SSHD at linux startup...type in console "sshd"
 
Old 10-30-2003, 01:47 PM   #3
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Do you have a firewall running? if so make sure its not blocking port 22 or whichever port you're running sshd on.
unless you have something like
sshd: ALL
in hosts.deny otherwise you shouldn't need to edit hosts.allow, in fact leave both files empty and get it working first, change the restrictions later. Its "sshd" btw, if that wasn't a typo
 
Old 10-30-2003, 02:20 PM   #4
phi_rad
Member
 
Registered: Oct 2003
Posts: 30

Original Poster
Rep: Reputation: 15
How do I check the firewall config? I search this forum about firewall configuration and most of them said about shorewall, but I couldn't find it in my machine.
 
Old 10-30-2003, 02:30 PM   #5
phi_rad
Member
 
Registered: Oct 2003
Posts: 30

Original Poster
Rep: Reputation: 15
How many items are there in the /etc (looking from /)? I'm afraid I might have deleted something...Anyway the shd is a typo error
 
Old 10-30-2003, 02:32 PM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
take a look at:

/sbin/iptables -L
 
Old 10-31-2003, 04:18 AM   #7
phi_rad
Member
 
Registered: Oct 2003
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks, it's indeed the firewall that causes the problem...Silly me for not suspecting it..
 
  


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
redhat 7.3 installation problem yildiz Red Hat 3 08-23-2004 07:46 PM
Installation problem redhat 9.0 arend Linux - General 9 06-15-2004 09:30 AM
redhat 7.3 installation problem pampatipraveen Linux - General 4 02-15-2003 01:11 PM
installation problem for RedHat 8.0 mairo Linux - Newbie 7 01-27-2003 12:45 PM
Redhat 6.2 Installation Problem George R Linux - Software 1 04-04-2001 09:07 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration