Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Linux SSH Error

Posted on 2016-08-09
9
139 Views
Last Modified: 2016-08-15
Hi,
I cannot ssh at all into a ubuntu vm.  I have the error:  ssh_exchange_identification:  Connection by remote host

I am not able to connect at all.  Let me know if you know a way to fix this.
0
Comment
Question by:Eric Donaldson
  • 5
  • 3
9 Comments
 
LVL 2

Expert Comment

by:ldvhai
ID: 41749690
Hi Eric Donaldson,
Can you access vm console? if possible you can try:
1. check your firewall
2. check port ssh.
3. check /etc/hosts.deny and /etc/hosts.allow
4. Try to access to vm with normal user, not root.
5. run command ps aux | grep sshd and check MaxSessions in ssh server
0
 

Author Comment

by:Eric Donaldson
ID: 41749731
Ok, thanks - I am able to ssh in from a different server, it seems to re-import the fingerprint from the server.  How can I remove the fingerprints from the other servers so I can login from my nomal pc?
0
 
LVL 77

Expert Comment

by:arnold
ID: 41749740
You need to delete the record for the IP from the known keys.  what software are you using to ssh?
on linux, .ssh/known_hosts is where you will find the IP/Hostname matching key that needs to delete.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Author Comment

by:Eric Donaldson
ID: 41750232
just ssh from a linux vm
0
 
LVL 77

Expert Comment

by:arnold
ID: 41750301
your responses need to be more detailed.
ssh -vvvvvvv user@server

vm to vm might run into issues within the host's attempt to handle the packet flows between the VM as well as scheduling.....
0
 

Author Comment

by:Eric Donaldson
ID: 41755576
Ok, when I ssh from the other linux host, I get:

ssh_exchange_identification:  Connection Closed by remote host

I am not sure how to get around it.  It did used to ssh without an issue.

Thanks
0
 

Author Comment

by:Eric Donaldson
ID: 41755778
Also I did try this from the host I am connecting from, but it did not work either:

http://www.lifewithtech.net/blog/tip-one-liner-command-remove-bad-ssh-key
0
 

Author Comment

by:Eric Donaldson
ID: 41755796
Actually I did figure it out, do you know why it would add itself to hosts.deny file?
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 41755830
if you use iptables and rules that auto-add systems/ips based on criteria that views the repettitive connection as an attack.

without an audit to see who, when the hosts.deny file was altered.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question