0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

gitlabからsshでcloneできなかった話 (Mac OS Catalinaのバグ)

Last updated at Posted at 2020-04-18

前提条件と解決策

前提条件

  • Mac OS Catalina 10.15.4 からlan外
  • 8192より大きいポートで
  • Domain nameを用いて

ssh接続しようとした時

解決策

  • Domain nameをnslookup等を使いipアドレスに書き換え

または

ssh -p <port> -oConnectTimeout=5 <user>@<servername>

参考

https://mjtsai.com/blog/2020/03/31/macos-10-15-4-broke-ssh/
https://discussions.apple.com/thread/251226509

発見経緯

gitlabからのsshを用いたcloneができなくてこの問題の発見に至りました。

ちなみに私の問題の場合は毎回git でcloneする場合に面倒だったのでgitの設定を

git config --local remote.origin.url "ssh://git@xxx.xxx.xxx.xxx:12345/<リポジトリpath>"

のような感じでipアドレスでの接続に変えることで解決しました。
(うっかり最初--globalでやってしまって大変な目に合ったのは内緒

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?