LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-28-2001, 09:34 AM   #1
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Rep: Reputation: 30
Question SSH - Refused Connections


I am trying to setup SSHD on my system. I am running RH 7.1. If I try to ssh locally, everything works fine. If I try to ssh into my machine from a remote location, it does not connect and shows "sshd: connection refused from X.X.X.X" in my logs. My firewall is set to allow traffic in on Port 22 and all port scans to my system show that it is open. I am also using xinetd. I was familiar with inet and knew how to get it up and running with that but now I am clueless. From what I can tell, and from what I have found, xinetd does not control ssh. Anyone got any pointers for ssh? (and xinetd if it is used with ssh?)

Andy
 
Old 06-30-2001, 05:32 PM   #2
lhm
LQ Newbie
 
Registered: Jun 2001
Location: Stockholm
Distribution: RedHat
Posts: 3

Rep: Reputation: 0
SSH does not use xinet.d
Look for adding AllowedHosts to you /etc/sshd/sshd_config file
Also make sure you are in the /etc/hosts.allowed file
 
Old 07-01-2001, 04:55 AM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Didja start the 'sshd' service?
 
Old 07-02-2001, 07:38 AM   #4
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Original Poster
Rep: Reputation: 30
Fixed it!

I did start the sshd service, mcleodnine. I made sure it was running properly by connecting to it locally from one of the machines on my network. It turned out to be the hosts.allow file. I added the settings I wanted for sshd and it ran perfectly after that.

At least I know my computer is smart enough to keep hackers like me out of it...

Andy
 
Old 08-29-2001, 03:21 AM   #5
boscos
LQ Newbie
 
Registered: Aug 2001
Posts: 3

Rep: Reputation: 0
Why it still refused after setting hosts.allow to ALL: ALL
 
Old 08-29-2001, 07:39 AM   #6
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Original Poster
Rep: Reputation: 30
It didn't

I was not stopping me after I did that. I just was not quick enough to pick up on it...

Andy
 
Old 08-31-2001, 01:16 AM   #7
boscos
LQ Newbie
 
Registered: Aug 2001
Posts: 3

Rep: Reputation: 0
When I debug with sshd -d I have this:

debug1: Seeding random number generator
debug1: sshd version OpenSSH_2.5.2p2
debug1: load_private_key_autodetect: type 0 RSA1
debug1: read SSH2 private key done: name rsa w/o comment success 1
debug1: load_private_key_autodetect: type 1 RSA
debug1: read SSH2 private key done: name dsa w/o comment success 1
debug1: load_private_key_autodetect: type 2 DSA
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.

I setup RedHat 7.1 and installed ssh server with the kpackage. So paths and all that may different from download tar.gz.
tcpwrapper, I believe, is blocking me.
Any advice to troubleshoot it?

Thanks
 
  


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 - Connection Refused eminence Linux - Networking 15 02-11-2020 10:48 AM
ssh and nfs connections refused by Linux host running RedHat 9.0 and having 2 NIC erinduffy Linux - Networking 1 01-21-2005 12:13 PM
ssh refused to connect paulmedic555 Linux - Networking 2 11-01-2004 01:45 PM
SSH into RH 7.3 refused Peanut Linux - Newbie 9 11-28-2003 03:45 PM
ssh: remote connections refused Skurge Linux - Networking 8 08-18-2003 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:33 PM.

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
Open Source Consulting | Domain Registration