码迷,mamicode.com
首页 > 其他好文 > 详细

iTerm2使用Profiles自动登录

时间:2018-03-02 18:42:49      阅读:3251      评论:0      收藏:0      [点我收藏+]

标签:end   term   tail   users   spawn   nbsp   bsp   command   bin   

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

 

 1.创建Profiles文件

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.添加配置文件到iTerm2

iTerm2->Preferences->profile->

name: 172.16.1.1

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

3.Profiles->172.16.1.1

iTerm2使用Profiles自动登录

标签:end   term   tail   users   spawn   nbsp   bsp   command   bin   

原文地址:https://www.cnblogs.com/peanutk/p/8494249.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!