1

I'm using openconnect in Ubuntu 16.04 LTS to ssh into a remote machine over a vpn. I'm trying to push and pull to/from Github with ssh authentication, but it's not working. When I try to pull or push, it gives the error:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

When I connect with nomachine, I'm able to push/pull with Github no problem.

I've tried googling many different things, and haven't noticed anything yet in the options for openconnect or ssh that would help.

Any ideas?

wordsforthewise
  • 13,746
  • 5
  • 87
  • 117

1 Answers1

1

The answer was simple: just set the git url to use the https version instead of ssh. You can also then cache the username/pass for https for a while: https://help.github.com/articles/caching-your-github-password-in-git/

wordsforthewise
  • 13,746
  • 5
  • 87
  • 117