Let iterm2 remember remote ssh connection under mac

brew install sshpass
brew install http://git.io/sshpass.rb
Create a passowrd directory in the root directory to manage passwords, enter the plaintext password for vim testserver, and save
/usr/local/bin/sshpass -f ~/password/testserver ssh username@host
Open iterm2 and configure as follows

image

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324520533&siteId=291194637