
この質問からさらに詳しく聞きたいのですが
クラウド サービスでポートを開く必要があるという問題は解決しました。次の問題は、gitlab.gitlabinstance.com
ホスト マシンの IP ではなく URL を使用してクローンを作成する方法です。例:
ssh [email protected] -p 6022
x.x.x.x
ホストマシンの IP であり、動作します。
SSHで接続したい
ssh [email protected] -p 6022
そして、IPアドレスがホストマシンのIPと異なる出力が得られました(zzzz、yyyy、a、a、a、a)
ここでz.z.z.z
、、y.y.y.y
はa.a.a.a
パブリックアドレスです
ssh -vT gitlab.example.com -p6022
OpenSSH_8.5p1, OpenSSL 1.1.1k 25 Mar 2021
debug1: Reading configuration data /c/Users/Sam/.ssh/config
debug1: /c/Users/Sam/.ssh/config line 1: Applying options for gitlab.example.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to gitlab.example.com [z.z.z.z] port 6022.
debug1: connect to address z.z.z.z port 6022: Connection timed out
debug1: Connecting to gitlab.example.com [y.y.y.y] port 6022.
debug1: connect to address y.y.y.y port 6022: Connection timed out
debug1: Connecting to gitlab.example.com [a:a:a:a] port 6022.
debug1: connect to address a:a:a:aport 6022: Network is unreachable
debug1: Connecting to gitlab.example.com [a:a:a:a] port 6022.
debug1: connect to address 2606:4700:3032::ac43:97fa port 6022: Network is unreachable
ssh: connect to host gitlab.example.com port 6022: Network is unreachable
これに対する解決策はありますか?