sshpass非交互式连接

$ sshpass -p $passwd ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $USER@$IP 'echo ok'

转载于:https://www.cnblogs.com/xcmelody/p/11237256.html

你可能感兴趣的:(运维)