Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-19-2003, 10:44 AM   #1
LQ Newbie
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
SSH Question...

Hello all...

I have RedHat 9.0 installed and SSH is installed as a part of this and appears to be running... is there some changes that need to be made to the config files before I can SSH using Putty into my Linux machine...

Everytime I try this, I get a "connection refused"... basically, do I need to make changes to the setup to have this work, or should it work without any tweaking... I am running a Linksys Router and I'm not sure if that is causing me problems... I have the port forwarding turned on...

If you tell me that it should work without any configuration, then I will remove my router from the picture and try this again!

Any and all help would be appreciated!

Old 07-19-2003, 10:51 AM   #2
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Exclamation it should work without any configuration

It is possible that your router may be blocking port 22 (the SSH port).
appears to be running...
if you want to verify the status of SSHd, type service sshd status at the command line.
Old 07-19-2003, 02:15 PM   #3
LQ Newbie
Registered: Jul 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Ok... it's running... so, do you have to configure SSH in order for me to connect... or should/would you be able to connect "out of the box" as they would say?

Old 07-19-2003, 02:22 PM   #4
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Check your firewall isn't blocking port 22:
iptables -L

post the output if you aren't sure.
Old 07-20-2003, 04:29 PM   #5
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31

Look in your /etc/hosts.deny and /etc/hosts.allow and see of you allow incoming ssh requests. If /etc/hosts.deny says


then /etc/hosts.allow should at least contain

sshd:<ip to let in>


Last edited by Bebo; 07-20-2003 at 04:30 PM.


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 question??? yenonn Linux - Security 5 02-25-2005 03:49 PM
ssh-agent/ssh-add question mega Slackware 2 01-26-2005 04:09 AM
Question on SSH ? brokenflea Slackware 7 10-27-2004 10:25 AM
ssh question pdelucia Linux - Security 1 07-09-2003 03:54 PM
question about ssh minor Linux - Security 7 05-20-2001 09:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 AM.

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