Results 1 to 6 of 6

Thread: CentOS 5.5: Error message ‘ssh_exchange_identification: Connection closed by remote host’

  1. #1
    Join Date
    Jan 2011
    Posts
    57

    CentOS 5.5: Error message ‘ssh_exchange_identification: Connection closed by remote host’

    I have installed CentOS 5.5 on the computer. I am getting problem while connecting with the Virtual Machine by using SSH. I don’t what could be the root cause but I got following error message on the screen. ‘ssh_exchange_identification: Connection closed by remote host’ Let me know if you are aware of the above mentioned error message. Any help would be highly appreciated. Thanks a lot in advance.

  2. #2
    Join Date
    May 2008
    Posts
    962

    Re: CentOS 5.5: Error message ‘ssh_exchange_identification: Connection closed by remote host’

    I have done lots of research work finally I have managed to fix the problem of mine. I have already tried to boot the computer into safe mode and searched into the home directory permission. I was suspecting that the error was causing due to SELinux on the computer. Well I have done modification at the kernel line in the GRUB with using ‘selinux=0’ after doing the above mentioned thing I have solved the problem. So try the same and let me know whether it is working or not.

  3. #3
    Join Date
    May 2008
    Posts
    991

    Re: CentOS 5.5: Error message ‘ssh_exchange_identification: Connection closed by remote host’

    If the Virtual Machine is self contained and was unable to use the host disk then the rebooting the Virtual Machine is totally dependent on the virtualizatin or hypervisor which you are using. There could be something wrong with the SELinux. I think you need to reboot the client and see whether it is working or not. If you are unable to do the same then you need to reset or simply power down the computer of yours.

  4. #4
    Join Date
    May 2008
    Posts
    1,020

    Re: CentOS 5.5: Error message ‘ssh_exchange_identification: Connection closed by remote host’

    Looking at the problem which you have mentioned over here I think I know the root cause of the problem. Well I have noticed that this particular problem happening because the server was denying the connection based on the IP. I have simply placed the IP into the /etc/hosts.allow location and after doing the same I was able to connect with the computer. You did not needed to reboot the SSH rather you should allow to change to be take effect on the system.

  5. #5
    Join Date
    Nov 2009
    Posts
    824

    Re: CentOS 5.5: Error message ‘ssh_exchange_identification: Connection closed by remote host’

    I have found that this particular issue was occurring due to changes in the permission into the /var /folder. You need to execute the following command on the terminal to change the permission.
    Code:
    chmod -R 755 /var/
    After executing the above mentioned command I have resolved the issue of mine. so use the above mentioned command and see whether it is working or not.

  6. #6
    Join Date
    Nov 2009
    Posts
    1,416

    Re: CentOS 5.5: Error message ‘ssh_exchange_identification: Connection closed by remote host’

    I am having particular solution which you can use to resolve the problem of yours. you should try to login on the computer by using the computer which is having IP-DNS pair. This particular solution would be useful in the situation when you are unable to login into by using DHCP server. Also you need to edit the /etc/hosts.deny file on the computer of yours. So you must try the above mentioned thing and let me know about results.

Similar Threads

  1. Replies: 1
    Last Post: 27-02-2012, 05:53 PM
  2. Opera Mini 10.63 Error: Connection closed by remote server
    By Maia in forum Technology & Internet
    Replies: 5
    Last Post: 30-12-2010, 07:44 PM
  3. Internet Message Access Protocol server closed the connection.
    By Maaheru in forum Technology & Internet
    Replies: 3
    Last Post: 26-11-2010, 02:29 AM
  4. Replies: 3
    Last Post: 28-07-2009, 06:11 PM
  5. Connection closed by remote host : ssh_exchange_identification
    By Volodymyra in forum Technology & Internet
    Replies: 2
    Last Post: 28-05-2009, 01:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,624,187.60280 seconds with 16 queries