[{"data":1,"prerenderedAt":76},["ShallowReactive",2],{"blog-post-2015-12-28-el-capitan-e4-b8-ad-e4-bd-bf-e7-94-a8-securecrt-e8-ae-bf-e9-97-ae-e8-b7-b3-e6-9d-bf-e6-9c-ba":3},{"id":4,"title":5,"body":6,"categories":60,"date":62,"description":63,"extension":64,"meta":65,"navigation":66,"path":67,"seo":68,"stem":69,"summary":70,"tags":71,"__hash__":75},"blog\u002Fblog\u002Fel-capitan-e4-b8-ad-e4-bd-bf-e7-94-a8-securecrt-e8-ae-bf-e9-97-ae-e8-b7-b3-e6-9d-bf-e6-9c-ba.md","El Capitan 中使用 SecureCRT 访问跳板机",{"type":7,"value":8,"toc":56},"minimark",[9,21,27,36,53],[10,11,12,13,20],"p",{},"最近做个项目需要访问",[14,15,19],"a",{"href":16,"rel":17},"https:\u002F\u002Fwww.zhihu.com\u002Fquestion\u002F21036511",[18],"nofollow","跳板机（堡垒机）","中的 Oracle 数据库。需要 ssh 到某一个 IP，转发到本地 127.0.0.xxx IP 中的某一个端口。 Windows 下使用 SecureCRT 进行这个操作时溜溜的，到了 Mac（10.11.2） 下面就嗝屁了，具体表现为：",[22,23,24],"blockquote",{},[10,25,26],{},"1. SecureCRT 中每次连接服务器都会提示输入密码，超级麻烦； 2. 全部设置好了以后依然无法连接到跳板机。",[10,28,29,30,35],{},"搜索之，翻了一大圈（使用中文关键词「mac securecrt 跳板机」），出来的结果都不甚理想。后来实在不甘心，在家大便的时候使用英文关键词搜索「mac securecrt port forwarding」，终于在",[14,31,34],{"href":32,"rel":33},"https:\u002F\u002Fwww.vandyke.com\u002Fproducts\u002Fsecurecrt\u002Ffaq\u002F028.html",[18],"官网找到了答案","，现整理如下：",[22,37,38,41,44],{},[10,39,40],{},"1. 打开 SecureCRT，按 ⌘ + , 进入偏好设置， General 中去除勾选「Use Keychain」，解决连接时保存密码不成功的问题； 2. 打开终端，输入下面的命令，绑定本地 IP（根据具体需求修改 xxx 部分）；",[10,42,43],{},"sudo ifconfig lo0 alias 127.0.0.xxx",[10,45,46,47,52],{},"3. 选中当前连接，按 ⌘ + enter，进入 Property 设置，选中 Port Forwarding，添加相应的转发规则（",[14,48,51],{"href":49,"rel":50},"http:\u002F\u002Fwww.2cto.com\u002Fos\u002F201401\u002F273236.html",[18],"方法","）； 4. 双击连接，成功。",[10,54,55],{},"PS：SecureCRT 与第三方输入法配合使用时，会出现 Console 中无法使用快捷键（比如 ⌃ + C 中断）的现象，切换为原生英文输入法就好了。",{"title":57,"searchDepth":58,"depth":58,"links":59},"",2,[],[61],"Development","2015-12-28T10:34:29+08:00","最近做个项目需要访问跳板机（堡垒机）中的 Oracle 数据库。需要 ssh 到某一个 IP，转发到本地 127.0.0.xxx IP 中的某一个端口。 Windows 下使用 SecureCRT 进行这个操作时溜溜的，到了 Mac（10.11.2） 下面就嗝屁了，具体表现为：","md",{},true,"\u002Fblog\u002Fel-capitan-e4-b8-ad-e4-bd-bf-e7-94-a8-securecrt-e8-ae-bf-e9-97-ae-e8-b7-b3-e6-9d-bf-e6-9c-ba",{"title":5,"description":63},"blog\u002Fel-capitan-e4-b8-ad-e4-bd-bf-e7-94-a8-securecrt-e8-ae-bf-e9-97-ae-e8-b7-b3-e6-9d-bf-e6-9c-ba","最近做个项目需要访问跳板机（堡垒机）中的 Oracle 数据库。需要 ssh 到某一个 IP，转发到本地 127.0.0.xxx IP 中的某一个端口。 Windows 下使用 SecureCRT 进行这个操作时溜溜的，到了 Mac（10.…",[72,73,74],"mac","SecureCRT","跳板机","cXwNv-CVsgLixWnDr1lw43tMLm-Cj8qJWB_er0CG83o",1795177972387]