Eric Donaldson
asked on
Linux SSH Error
Hi,
I cannot ssh at all into a ubuntu vm. I have the error: ssh_exchange_identificatio n: Connection by remote host
I am not able to connect at all. Let me know if you know a way to fix this.
I cannot ssh at all into a ubuntu vm. I have the error: ssh_exchange_identificatio
I am not able to connect at all. Let me know if you know a way to fix this.
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.
on linux, .ssh/known_hosts is where you will find the IP/Hostname matching key that needs to delete.
ASKER
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.....
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.....
ASKER
Ok, when I ssh from the other linux host, I get:
ssh_exchange_identificatio n: Connection Closed by remote host
I am not sure how to get around it. It did used to ssh without an issue.
Thanks
ssh_exchange_identificatio
I am not sure how to get around it. It did used to ssh without an issue.
Thanks
ASKER
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
http://www.lifewithtech.net/blog/tip-one-liner-command-remove-bad-ssh-key
ASKER
Actually I did figure it out, do you know why it would add itself to hosts.deny file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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