ssh scp without known_hosts check hostkey ignore

add -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null

ex:

ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null jenkins-security@${ARM_SERVER_IP}
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -pr jenkins-security@${ARM_SERVER_IP}:${CODE_PATH}/out/* sbl1_rpm/
未經允許不得轉載:GoMCU » ssh scp without known_hosts check hostkey ignore