# 编辑当前用户的ssh config 文件
vim ~/.ssh/config

#每一组由 Host 开始
Host gitlab.com # 这里的ip/domain 是你的主机名,写ip或者域名
    Hostname altssh.gitlab.com
    User git
    Port 443 
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/gitlab

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-04-16
  • 2022-12-23
  • 2021-10-21
  • 2021-11-04
  • 2022-01-22
猜你喜欢
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案