LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 12-27-2007, 08:35 PM   #1
jgray1978
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
Unhappy ssh_exchange_identification: Connection closed by remote host


I need some help here. Yes I have googled this problem but I can not seem to find a resolution.

I have a number of servers both co located around Tulsa as well as in Michigan that host databases, web, and email. I built this server to be a backup server for different people's databases or websites. I did this before but scraped the plan when I had hard drive failure on the backup server. The new backup server is on a private network with ip 10.10.10.4. I started out by setting up the rsa key pairs so that the backup server could ssh to these different server without a login (ease of script writing). I ssh the first server...accept the fingerprint...login...logout and scp the id_rsa.pub to the remote server's ~/.ssh/authorized_keys. I then test. Works...I then did the same on the second server. Again...everything went as planned. I then tried my third server and get "ssh: connect to host XXX.XXX.XXX.XXX port 22: Connection refused" I then run a ssh -v -v -v and get:
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /home/backup.unix/.ssh/identity type -1
debug3: Not a RSA1 key file /home/backup.unix/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /home/backup.unix/.ssh/id_rsa type 1
debug1: identity file /home/backup.unix/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host

I then tried another remote server and get the same. I can still ssh the first two that I setup with no problems and I can ssh these other ones from my desktop so I am figuring that this has something to do with my new backup server and sshing anything other then these two remote servers that I setup with keys.

Anyone know what went wrong here?
 
Old 12-27-2007, 10:22 PM   #2
jgray1978
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Nevermind. Found my problem. I did not have the backup server specified in our untangle server so it was defaulted to a no outbound service profile.
 
  


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_exchange_identification: Connection closed by remote host piter23 Linux - Software 17 09-11-2013 09:59 AM
ssh_exchange_identification: Connection closed by remote host sailu_mvn Linux - Networking 5 07-09-2008 09:47 AM
ssh_exchange_identification: Connection closed by remote host t0bias Linux - Software 0 09-27-2007 10:50 AM
ssh_exchange_identification: Connection closed by remote host liguorir Linux - Software 3 09-18-2003 11:42 AM
ssh_exchange_identification: Connection closed by remote host ctav01 Linux - Networking 1 08-22-2003 07:14 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 07:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration