https://segmentfault.com/q/1010000002806469

 

还能设置连接成持久连接,方便使用:

 ttps://www.zhihu.com/question/20541129/answer/62696492

 

现在习惯了 iTerm2。加强版命令行。

其实不想每次输入hostuser,可以在 ~/.ssh/config文件写上配置alias信息,以后ssh的时候根据alias即可。如:

Host alias-name

    ControlMaster auto #复用
    ControlPersist yes  #持久

   HostName ip_address
   Port 22
   User user

这个方法还可以配置ssh私钥,这样连接的时候连密码都用不着输。

相关文章:

  • 2021-07-05
  • 2021-06-18
  • 2021-06-15
  • 2021-08-30
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2021-12-30
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
相关资源
相似解决方案