1

I'm trying to run git submodule update command on my ubuntu machine but it hangs on Cloning into '/home/ubuntu/mazerat/mazerat/tasks/instabotpy'...

I checked following solutions but doesn't work.

git submodule init does absolutely nothing

Git submodules update is stuck

Same instance works properly on macOS Mojave (Version 10.14.3) and Windows 10.

Also machine SSH public key is set on github.

I tried to run command as root (after set the root ssh key) for premission check but didn't matter.

.gitmodules

[submodule "mazerat/tasks/instabotpy"]
    path = mazerat/tasks/instabotpy
    url = git@github.com:motameni/instabot.py.git
Ali Motameni
  • 2,567
  • 3
  • 24
  • 34
  • 1
    Have you tried running `ssh -T git@github.com` from the VPS as suggested by [this article](https://help.github.com/articles/testing-your-ssh-connection/)? – John Szakmeister Feb 20 '19 at 18:04
  • No, I haven't. I've tested it now and doesn't response... – Ali Motameni Feb 20 '19 at 18:32
  • 2
    Sounds like the machine on which this is failing is unable to reach `github.com`, probably due to some sort of network configuration issue. – torek Feb 20 '19 at 19:11
  • 1
    @AliMotameni it definitely sounds like a network problem. We don't know what you're doing or how things, so we can't tell you what is specifically wrong. But it sounds like there is a firewall (either on the node or somewhere else) that is blocking outbound ssh (port 22). – John Szakmeister Feb 20 '19 at 20:25
  • I imported my repo to gitlab and then tested ssh -T git@gitlab.com and it works. but still `git submodule update` is stuck! – Ali Motameni Feb 21 '19 at 08:36
  • @JohnSzakmeister I had turned off the firewall. I think this is not a firewall issue. – Ali Motameni Feb 21 '19 at 08:39
  • The `ssh -T git@github.com` problem is about github limitations according to U.S. sanctions against Iran. – Ali Motameni Feb 21 '19 at 08:46

0 Answers0