Link to home
Start Free TrialLog in
Avatar of Eric Donaldson
Eric Donaldson

asked on

Linux SSH Error

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.
Avatar of ldvhai
ldvhai

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
Avatar of Eric Donaldson

ASKER

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?
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.
just ssh from a linux vm
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.....
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
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
Actually I did figure it out, do you know why it would add itself to hosts.deny file?
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial