item2 添加多个 SSH
进入~/.ssh文件架中新建一个ssh项目 如ssh_tencent_cloud
vim ssh_tencent_cloud 进入编辑状态添加以下配置
#!/usr/bin/expect -f
set user root
set host 0.0.0.0
set password ********
set timeout -1
spawn ssh $user@$host
expect "*assword:*"
send "$password\r"
interact
expect eof
在item2中添加
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: