brew安装sshpass
brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
登陆
sshpass -p password ssh username@ip
起别名
vim ~/.bash_profile
ssh alias
插入 alias serv="sshpass -p 'mima' ssh user@ip"
立即起效
source ~/.bash_profille
serv 就连上服务器啦