For remote development using VS Code, when I perform a GIT clone how does the repository get to the remote computer?

Viewed 948

This is more of a security question: I am running VS Code on my Windows laptop and working with a repository on a Linux computer that VS Code is SSH'd into. I installed a VS Code GIT extension, GitHub Pull Requests and Issues, and was able to clone a repository onto the remote computer.

My access to GitHub is via a secure connection using the SSH keys on my computer (I give VS Code an https URL). VS Code then prompts for my user name and personal access key (that I set up in Git).

My coworkers don't use VS Code. They enter the GIT clone command directly on the remote Linux computer, and use SSH Agent forwarding to relay the user authentication challenge from GitHub back to the local computer they are working on.

My question: Is VS Code using SSH Agent forwarding in the backgound, or is the repository being cloned transferred first to my laptop (that is running VS Code), and then via SSH to the remote Linux computer (that is running a VS Code server)? Or is the secure cloning done some other way entirely?

0 Answers
Related