mac配置iterm2,iterm2使用方法
一、设置上传下载功能,实现ftp功能
https://github.com/aikuyun/iterm2-zmodem
https://segmentfault.com/a/1190000015747489?utm_source=tag-newest
二、设置自动登陆服务器
这里用到了sshpass工具,要链接国外服务器下载sshpass,可能动不动会下载失败,建议使用vpn。如果不行可以用expect脚本方法自动登陆,这里不描述了。
安装sshpass
brew install http://git.io/sshpass.rb
配置iTerm2
Preference>profiles 快捷键 command+,
新建demo profile
配置command
/usr/local/bin/sshpass -p passwrod ssh userName@ip -o StrictHostKeyChecking=no
三、设置标签页名称
如果不设置,会显示服务器的机器名称,非常不方便我们分辨, 如下图,Title选 Profile Name,下面那个 Application开头的框框去掉勾选就行了