1

I am using video player with git link to download externally in my flutter project and i did this:

video_player:
            git:
              url: ssh://github.com/sanekyy/plugins.git
              ref: caching
              path: packages/video_player/video_player

I have tried https on ssh place, but still not working and I am getting this error in my terminal.

for ssh:

stderr: ssh: connect to host github.com port 22: Operation timed out
fatal: Could not read from remote repository.

for https:

Git error. Command: `git fetch`
stdout: 
stderr: fatal: unable to connect to github.com:
github.com[0: 20.207.73.82]: errno=Operation timed out
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250

1 Answers1

0

Note: an SSH URL would be

ssh://git@github.com/sanekyy/plugins.git
      ^^^

You can check first if the network allows you to contact github.com through SSH or HTTPS with:

curl -v telnet://github.com:22
curl -v telnet://github.com:443

If both fail, you might need to check with your server, or your IT admin, why the route is blocked (firewall, network policy, ...)

Example of HTTPS configuration here.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250