【问题标题】:Is it possible to install GitLab server on virtual machine with a invalid IP address?是否可以在 IP 地址无效的虚拟机上安装 GitLab 服务器?
【发布时间】:2022-11-01 15:12:12
【问题描述】:

我已经在虚拟机(VMWare)上安装了 GitLab 服务器。 GitLab IP 地址是 192.168.1.4 。我可以从浏览器中看到 GitLab。我生成了 ssh-key 并添加到 GitLab 服务器。

当我运行ssh -T git@192.168.1.4 时,我得到了这个错误:

ssh: connect to host 192.168.1.4 port 22: Connection refused

【问题讨论】:

  • 你检查过虚拟机防火墙规则了吗?
  • 不,我如何检查这个。
  • 虚拟机是否运行 sshd?
  • @SiKing,sshd 没有运行
  • 如果服务器(虚拟或其他)没有运行 ssh-deamon,你希望如何连接到它?

标签: gitlab windows-10 vmware


【解决方案1】:

您不仅需要在 GitLab 服务器中运行 SSHD(输入 netstat -l -t -n 以检查它是否侦听端口 22,as in here)。

但您还需要检查:

  • 防火墙规则
  • port mapping(在您的 VMWare 配置中)

【讨论】:

    猜你喜欢
    • 2021-09-24
    • 2018-07-12
    • 2012-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-21
    • 1970-01-01
    相关资源
    最近更新 更多