From the course: Programming Foundations: Version Control with Git

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

HTTPS vs. SSH

HTTPS vs. SSH

- [Instructor] In this course, we'll learn how to use Git repositories locally on our computers and remotely on a Git hosting server. To connect the local repository to the remote repository and keep them in sync, there are two common methods for communicating with the Git hosting server: SSH or HTTPS. SSH provides better security compared to HTTPS. It uses public-key cryptography, which enhances authentication security. Once you've set up the SSH keys, you won't need to enter your credentials every time you interact with the remote repository. This makes the process more streamlined. However, setting up and managing SSH keys may be more complex for users who are not familiar with public key cryptography. Also, in some network environments, firewalls might restrict SSH communication, causing connection issues for users. When using HTTPS, it's generally easier to set up, which makes it a good choice for beginners or for those who prefer a simpler setup. For authentication, you usually…

Contents