Linux users use the ssh compiler script, the The authenticity of host can & rsquo; t be xx established prompt, although does not affect the ssh connection, but each connection Will appear, how to remove the prompt?
A while back, but do backup system recovery exercises found, rsync been a long time have not sync successful. Originally, the key exchange is used to complete the verification in ssh, but it may be prompted by the key of the host. Every time ssh connection (or rsync), there will be a prompt: The authenticity of host can’t be xx established Output an interaction of “yes”.
For this prompt, there is no prediction in the script, so there is no judgment and processing (it is easy to handle with expect). The following method is provided to remove the prompt.
1. When using ssh to connect to a remote host, add the option of “-o StrictHostKeyChecking=no” as follows:
ssh -o StrictHostKeyChecking=no 192.168.xxx.xxx
2. A way to completely remove this hint is to modify the configuration in the /etc/ssh/ssh_config file (or $HOME/.ssh/config) and add the following two lines:
StrictHostKeyChecking no< Br>
UserKnownHostsFile /dev/null
After modifying the configuration, restart the sshd service. The command is: /etc/init.d/sshd restart (or service sshd restart )
< Of course, this is the ssh connection between the servers that are trusted by the intranet, so the host key is checked directly without considering security issues.
The problem with “Host key verification failed.” encountered in ssh is also related to the configuration of "StrictHostKeyChecking".
The above is the way to remove the ssh connection when the Linux removes the ssh connection. The method of the prompt is introduced. If you think that the prompt has been annoying, you can choose to remove it.
In the Linux system compiled link error, prompt undefined reference & rsquo; dlclose@xxx function er
eCryptFS is a file encryption system in Linux system. It can encrypt files or direc
Many people do not know the specific usage of the tar command in Linux. In fact, th
VMware Tools is a virtual machine software that many computer gamers love. VMware T
How to deal with the problem of starting weblogic server error in Linux
What are the SELinux security mechanisms?
Ubuntu 14.04 prohibits the apport error report window startup method
How to use the command to monitor the server under Linux
How to solve the problem that the WeChat public platform webpage cannot play audio under Linux?
Linux recovery method was mistakenly deleted root user
How can I use email to send emails under Linux lnmp?
Summary of methods for restricting user su-permissions in Linux system
Linux terminal prompt path length modification method
Win10 Build 10125 full icon new design released: color configuration adjustment
How to solve the reverse screen of Win7 system desktop?
Win8 version of the QQ card is serious. Tencent's solution introduced
How to shut down win8 system Set win8 one-button shutdown method
U disk mobile hard disk can not be deleted under Windows 7 solution
Win10 stops running the service operation method
How to open the built-in firewall win10? Win10 firewall open method
3 ways to solve the win7 does not display the input method
Quickly hide the small Raiders of the Win8 system partition
No need exists - User summary of the five major useless features in Windows 7