linux sshpass 非交互的ssh密碼驗證 簡介

sshpass 命令的安裝:bash # yum -y install sshpass 實例1:直接遠程鏈接某臺主機:ssh 命令:sshpass -p xxx ssh root@192.168.11.11spa 實例:本地執行遠程機器的命令:code 命令: sshpass -p xxx ssh root@192.168.11.11 "ethtool eth0"blog 實例2:遠程鏈接指定ss
相關文章
相關標籤/搜索