bengtuo
V2EX  ›  macOS

mac下有没有类似win下的xshell的保存ssh会话的软件?

  •  
  •   bengtuo · Oct 10, 2013 · 12073 views
    This topic created in 4625 days ago, the information mentioned may be changed or developed.
    rt
    就是保存多个主机 和 密码
    13 replies    1970-01-01 08:00:00 +08:00
    halfbloodrock
        1
    halfbloodrock  
       Oct 10, 2013
    secureCRT mac版本
    leopku
        2
    leopku  
       Oct 10, 2013
    用密钥认证吧
    leopku
        3
    leopku  
       Oct 10, 2013
    另外,alias很方便
    bengtuo
        4
    bengtuo  
    OP
       Oct 10, 2013
    @leopku 目前就是密钥 + alias 但是感觉有时候还是不怎么方便
    little_cup
        5
    little_cup  
       Oct 10, 2013
    .ssh/config 文件
    示例:
    host xxx
    hostname xxx.com
    port 8964
    bengtuo
        6
    bengtuo  
    OP
       Oct 10, 2013
    @little_cup 神马意思 这样的作用呢
    little_cup
        7
    little_cup  
       Oct 10, 2013   ❤️ 1
    @bengtuo 比如我添加了:
    host homenas
    hostname homenas.******.com
    port 23333
    user root

    所以用的时候直接ssh homenas(等效于完整的ssh root@homenas.******.com -p 23333)即可。
    bengtuo
        8
    bengtuo  
    OP
       Oct 10, 2013
    @little_cup 谢谢 学习啦
    xatest
        9
    xatest  
       Oct 10, 2013   ❤️ 1
    bengtuo
        10
    bengtuo  
    OP
       Oct 10, 2013
    @xatest 这个也不错 谢谢啦
    songerzhou
        11
    songerzhou  
       Oct 10, 2013
    zoc
    likuku
        12
    likuku  
       Oct 11, 2013
    使用了 .ssh/config 后,再给 .bash_profile 里设定 alias

    比如:
    alias ts1='ssh user@test_idc'

    这样,直接输 ts1 就ssh 连接到指定主机。

    alias 里的 也可以被 bash 的 自动匹配支持,输入 ts 按 tab 就可补全 ts1
    Fikhtengol
        13
    Fikhtengol  
       Oct 12, 2013
    zsh,ssh-agent, control+r
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1040 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 18:43 · PVG 02:43 · LAX 11:43 · JFK 14:43
    ♥ Do have faith in what you're doing.