一、安装expect
brew install expect
二、使用item2的profiles 和expect脚本
1.新建:vim /usr/local/bin/autoSsh.exp
2.设置权限:chmod -R 777 /usr/local/bin/autoSsh.exp
3.如图操作
按图设置4.完工。
brew install expect
1.新建:vim /usr/local/bin/autoSsh.exp
2.设置权限:chmod -R 777 /usr/local/bin/autoSsh.exp
3.如图操作
按图设置4.完工。
本文标题:MacOS新建ITerm2通过ssh自动登录详解
本文链接:https://www.haomeiwen.com/subject/tkntiftx.html
网友评论