SecureCRT自动登录设置指南
一 基本方式 会话登录动作自动发送用户名与密码
二 使用登录脚本实现复杂交互
#!/usr/bin/expect
set timeout 60
set host 192.168.1.46
set name root
set password 123456
spawn ssh $name@$host
expect "yes/no?"
send "yes\r"
expect "assword:"
send "$password\r"
expect "$ "
interact
在SecureCRT中通过工具 → 运行脚本 Tools → Run Script执行。三 启动即自动连接指定会话
四 批量与安全管理建议