Check your network connection. If you’re a Mac user, you’ll need to uninstall Microsoft Edge before you reinstall it, and your history, cookies, and settings won't be restored after the reinstall. The installer failed to start. Verify that there's enough space on the hard drive to install Microsoft Edge. This site contains user submitted content, comments and opinions and is for informational purposes only. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the. Host key verification failed. When you connect to a server via SSH, it gets a fingerprint for the ECDSA key, which it then saves to your home directory under /.ssh/knownhosts. This is done after first connecting to the server, and will prompt you with a message like this. %CRYPTO-4-RECVDPKTMACERR: decrypt: mac verify failed for connection. In order to troubleshoot the problem, you can also try connecting to other websites, and see if your network works properly. If not, then you should found where the problem lies in, and try fixing the network connection in your device. If the network connection works fine, don’t be upset, and you can try the methods below.
What happens in background when you connect a server first time using ssh
When you connect to a server for the first time, the server prompts you to confirm that you are connected to the correct system. The following example uses the ssh command to connect to a remote host named host03:
Mac Verify Failed For Connection Password
Host validation is one of OpenSSH’s major features. The command checks to make sure that you are connecting to the host that you think you are connecting to. When you enter yes, the client appends the server’s public host key to the user’s ~/.ssh/known_hosts file, creating the ~/.ssh directory if necessary. The next time you connect to the remote server, the client compares this key to the one the server supplies. If the keys match, you are not asked if you want to continue connecting.
What causes host key verification failed error
If someone tries to trick you into logging in to their machine so that they can sniff your SSH session, you will receive a warning similar to the following:
If you ever get a warning like this, stop and determine whether there is a reason for the remote server’s host key to change (such as if SSH was upgraded or the server itself was upgraded). If there is no good reason for the host key to change, do not try to connect to that machine until you have resolved the situation.
How to correct the “host key verification failed” error
Mac Network Drive Connection Failed
Method 1 – removing old key manually
1. On the source server, the old keys are stored in the file ~/.ssh/known_hosts.
2. Only if this event is legitimate, and only if it is precisely known why the SSH server presents a different key, then edit the file known_hosts and remove the no longer valid key entry. Each user in the client/source server has its own known_hosts in its home directory, just remove the entry in the file of a specific user for the destination server. For example: – If root wants to ssh to the server, just removing entry in the /root/.ssh/known_hosts file is all right. – If testuser wants to ssh to the server, then remove the entry in the file /home/testuser/.ssh/known_hosts.
3. In my case, I will remove the the key (highlighted in red) for the destination server 192.168.219.149 from the file /home/user01/.ssh/known_hosts.
Method 2 – removing old key using the ssh-keygen command
You can also remove the old key using the ssh-keygen command as well. The syntax to use the command is below.
Mac Network Connection Failed
For example, In our case we will use the IP address to delete the old key.
Note : If you do not know precisely, why the SSH server presents a different key, either your known_hosts file is incorrect, or somebody must investigate this server and the network connections to understand the reason of the unexpected change.
Verify
If the remote servers asks for a confirmation to add the new key to the ~/.ssh/known_host file, it confirms that you have successfully removed the old key. If you confirm the request, the source machine adds the new key into the ~/.ssh/known_host file.