Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 10-17-2003, 07:13 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
SSH connection refused using linux box

I have 3 machines:

A. web server with RH7.2
B. LAN server with RH7.1
C. Laptop with Win98

I can SSH connect to the web server with my laptop using PuTTy and WinSCP3. No problem here.

I can SSH connect to the LAN server with my laptop using PuTTy and WinSCP3. No problem here.

But when I try to SSH connect to the web server using my LAN server I get the "Secured connection to refused" error.

I'm wondering why?

Both laptop and LAN server are connected to a proxy for internet access. I can browse the web and logon to my secure pages using the LAN server.

I tried using gFTP and the command line on my LAN server to SSH to the web server but no go.

My LAN server ssh_config file has the following entries:

Host *
	ForwardX11 yes
	Protocol 2,1
Is ther anything else I have to set up in the LAN server?

Thanks in advance.

Last edited by 90coders; 10-17-2003 at 07:16 AM.
Old 10-17-2003, 09:17 AM   #2
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
could be a couple of you run a firewall on the LAN Server? If so make sure you have a statement that allows connections between those boxes. Or, how about your hosts.deny? Blocking anything there?

Gut says it's a ruleset on the LAN Server.
Old 10-17-2003, 01:25 PM   #3
Registered: Oct 2003
Location: ITALY
Distribution: Debian, Ubuntu, Fedora
Posts: 137

Rep: Reputation: 15
Maybe I'm going to say something wrong...
When you use ssh for connecting for the first time to an host, it generates RSA keys. If the host you want connect to has recently changed its key (reinstallation, deletion ecc.) ssh recognises something weird is going on. This can be the case.
The laptop probably has the newer key and this seems obvious since i suppose you rarely use the server console. In this case you just have to delete the keys in the LAN server.
This COULD be one of the reasons.
Old 10-18-2003, 02:53 AM   #4
LQ Newbie
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
My LAN server RH7.1 is a vanilla install. During the installation I did opt to install the firewall but haven't touched it since.

host.deny is empty as well as host.allow.

I am reading up on iptables (a lot to digest) but really don't know what to look out for. The contents of my iptables file is the default settings. I also read ( that RH7.1 uses ipchains and should be upgraded to use iptables. Still not clear on this and thus haven't done the upgrade. Can this be the cause?

Re keys. I read somewhere in this forum a HowTo setup passphrase so I don't have to enter my password everytime I logon to the Web Server. I went through the suggested steps but it seems that it'll only work if you can get connected.

I also suspect it's some rule set that I have to configure but where and what do I enter?

I'd really appreciate some guidelines on how to do this. I guess it's obvious that I'm no expert at this.

Thanks for the assist.


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 14 03-06-2012 12:22 AM
SSH Connection Refused? lowpro2k3 Linux - Networking 2 11-04-2009 11:02 AM
ssh in fedora: connection refused zwanzig Linux - Networking 8 06-11-2004 04:26 AM
ssh secure connection refused lugoteehalt Linux - Networking 2 03-19-2004 10:33 AM
ssh connection refused rguptatx Red Hat 4 11-13-2003 06:18 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:37 PM.

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