bengtuo
V2EX  ›  macOS

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

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

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

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

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

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