Using the Secure Shell (SSH) protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to Version Control Account (BitBucket/GitHub..) accounts without supplying your username or password at each visit. We need to generate SSH key pair, Add the private key to ssh agent and public key to Version control account. 1. Generating SSH key pair Open Terminal and paste the text below, substituting in your email address or some unique key like employee Id. ssh-keygen -t rsa -b 4096 -C " your_email@example.com " This creates a new ssh key, using the provided email as a label. This generates public/private rsa key pair. When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location. 2. Adding your SSH key to the ssh-agent Start the ssh-agent in the background. eval "$(ssh-agent -s)" If you're using macOS Sierra 10.12.2 or l...
Comments
Post a Comment