xshell配置通过堡垒机直接登陆到内网机器

在xshell中文件-->新建菜单,打开新建会话属性,填写堡垒机的IP端口和账号密码后,进入登录脚本 :
勾选"执行以下的期望和发送组合对(X) "
(1)添加:
期望: 
发送: :ssh root@10.3.8.211 
(2)添加:
期望:root@10.3.8.211:22’s password    这个期望就是ssh root@10.3.8.211 后弹出的那段让输入的密码的英文
发送:password
 
 
xshell4配置堡垒机访问server - Only - Only
xshell4配置堡垒机访问server - Only - Only
  
posted @ 2017-12-21 16:35  Histring  阅读(2282)  评论(0编辑  收藏  举报