iTerm2使用Profiles自動登陸

http://blog.csdn.net/wandershi/article/details/75088310ssh

 

 1.建立Profiles文件ui

cd ~/.ssh/iTerm2SSH/
vi 172.16.1.1 #!/usr/bin/expect spawn ssh work@172.16.1.1 expect "*password:" send "123\r" expect "*#" interact

2.添加配置文件到iTerm2spa

iTerm2->Preferences->profile->.net

name: 172.16.1.1code

Command->expect /Users/wangzhongkui/.ssh/iTermSSH/172.16.1.1blog

3.Profiles->172.16.1.1class

相關文章
相關標籤/搜索