iterm笔记


相关网址

加载自动脚本

目录: ~/.ssh/127.0.0.1

set user root
set host 127.0.0.1
set password 123456
set timeout -1
set port 1234

spawn ssh $user@$host -p $port
expect "*assword:*"
send "$password\r"
interact
expect eof

目录: iTerm2-->Profiles-->Edit Profiles...-->Command

expect ~/.ssh/127.0.0.1