brew安裝sshpass
brew install http://git.io/sshpass.rb
在根目錄下建立passowrd目錄用來管理密碼,vim testserver 輸入明文密碼,保存
/usr/local/bin/sshpass -f ~/password/testserver ssh username@host
打開iterm2如下配置

brew install http://git.io/sshpass.rb
/usr/local/bin/sshpass -f ~/password/testserver ssh username@host

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。