Problem description
The following error occurred during the first SSH connection and GIT operation:
Solution
vim /etc/ssh/ssh_config
add at the end of the document
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
just save
The following error occurred during the first SSH connection and GIT operation:
vim /etc/ssh/ssh_config
add at the end of the document
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
just save
Use SSH to log in once, and then log in through sshpass
ssh -p 22 -o StrictHostKeyChecking=no [email protected]
Note: you’d better check whether there is a SSH password free login configuration first. If there is, clear it