V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
johnsneakers
V2EX  ›  macOS

命令行终端怎么像 XShell 一样保存历史连接?

  •  
  •   johnsneakers · 2014-12-16 23:19:36 +08:00 · 3400 次点击
    这是一个创建于 3423 天前的主题,其中的信息可能已经有所发展或是发生改变。
    每次都要去ssh 111.xxx 好烦躁,有没有方案啊。。
    11 条回复    2014-12-17 22:42:07 +08:00
    cnfbi
        2
    cnfbi  
       2014-12-16 23:36:26 +08:00   ❤️ 1
    [img]http://i.niupic.comimages/2014/12/16/549051287023a.png[/img]
    [img]http://i.niupic.comimages/2014/12/16/5490515175935.png[/img]
    cnfbi
        3
    cnfbi  
       2014-12-16 23:36:38 +08:00
    见图
    cnfbi
        4
    cnfbi  
       2014-12-16 23:38:13 +08:00
    图牛图床有问题
    右击终端-新建远程连接
    bsder
        5
    bsder  
       2014-12-16 23:38:42 +08:00 via Android   ❤️ 1
    pip install storm 其实就是操作 ~/.ssh/config.但是这个可以有命令行,比手工编辑方便
    bsder
        6
    bsder  
       2014-12-16 23:41:29 +08:00 via Android
    pip install stormssh ,上面记错了
    Tink
        7
    Tink  
       2014-12-17 01:20:41 +08:00   ❤️ 1
    shuttle
    NathanInMac
        8
    NathanInMac  
       2014-12-17 02:35:43 +08:00
    shuttle
    Ixizi
        9
    Ixizi  
       2014-12-17 09:09:43 +08:00
    弄成个shell脚本。
    missdeer
        10
    missdeer  
       2014-12-17 09:23:59 +08:00
    shuttle+1
    有钱就用SecureCRT吧
    sinoswiss
        11
    sinoswiss  
       2014-12-17 22:42:07 +08:00   ❤️ 1
    如果你经常需要ssh登录多个服务器,可以将shell命令(ssh user@host)保存在扩展名为command的可执行脚本中,然后按照分类将脚本放在不同的文件夹,拖动文件夹到Dock栏,这样就是一个ssh服务器的快捷入口,点击某个command脚本,自动打开终端并执行脚本登录。类似shuttle应用的效果

    [img] [/img]
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   949 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:09 · PVG 03:09 · LAX 12:09 · JFK 15:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.