Skip to content

Git & GitHub

vybn forwards your local SSH agent to the VM automatically, so you can push to GitHub (or any Git remote) using the SSH keys on your local machine — no credentials need to be stored on the VM.

If you haven’t already:

Make sure your SSH key is loaded in your local agent before connecting:

Terminal window
# Check if your key is loaded
ssh-add -l
# If not, add it
ssh-add ~/.ssh/id_ed25519
Terminal window
vybn connect

On the VM, Git operations over SSH work normally:

Terminal window
git clone git@github.com:youruser/yourrepo.git
git push origin main
  • Agent forwarding only lasts for the duration of your SSH session. If you disconnect and reconnect, forwarding resumes automatically as long as your local agent still has the key loaded.
  • Use SSH URLs (git@github.com:...) for remotes, not HTTPS URLs.
  • If ssh-add -l shows “The agent has no identities” on your local machine, your key isn’t loaded and forwarding won’t work.