Windowsクライアントでローカルネットワーク上のCentos Gitサーバーを接続する方法

Windowsクライアントでローカルネットワーク上のCentos Gitサーバーを接続する方法

Linux CentOSでは:

yum install git
cd /home
mkdir mysite
cd mysite
git init

Windows 10の場合:

git clone https://my_server_username:[email protected]/home/mysite/mysite.git

次を返します。

fatal: unable to access 'https://192.168.1.10/home/mysite/mysite.git/': Failed to connect to 192.168.1.10 port 443 after 1014 ms: Connection refused

SSHを使用して接続でき、両方のオペレーティングシステムでファイアウォールが無効になっています。

私は何を逃したことがありませんか?

ベストアンサー1

欲しいものを達成する方法はいくつかあります。 Linuxシステムをgitサーバーとして使用します。

  • サーバーでgitdデーモンを実行します。これは、Webサーバー(http / https)フロントエンドまたはSSHフロントエンドを使用して実行できます。
  • の説明に従って、サーバー上で.ssh/authorized_keysを構成し、サーバー/デーモンなしで実行します。この回答

おすすめ記事