- GitLab Cookbook
- Jeroen van Baarsen
- 373字
- 2021-08-05 16:55:06
Generating your SSH key on Windows
As Windows does not have a fully functioning terminal, we have to take some other steps to install Git and generate our SSH key. We will take a look at how this is done in this recipe.
How to do it…
- Go to Windows.
- The download will start automatically. When it's done, you see the following installation window:
- Click on Next and accept the license agreement.
- Choose where you want to install Git and click on Next.
- You will want the following components to be selected:
- Windows Explorer integration
- Associate .git* configuration files with the default text editor
- Associate .sh files to be run with Bash
After selecting the preceding components, click on Next. The following screenshot shows you these options:
- Choose where you want to place Git in your start menu and click on Next.
- Choose Use Git from Git Bash only and click on Next.
- Select Checkout Windows-style, commit Unix-style line endings, and click on Next.
- Wait until the installation is done and click on Finish.
- Go to your start menu and open Git Bash. This will open the following terminal window:
- To generate your SSH key, enter the following command:
ssh-keygen
- When asked for the location at which you want to save the file, just press Enter.
- Enter a secure passphrase for your SSH key.
- Your SSH key is now generated, as shown in the following screenshot:
How it works…
As Windows doesn't come with a built-in Git setup, we have to install it ourselves. We also have to install Git Bash so that we can use Git via the command line.
One thing that is important while creating your SSH key is to remember to enter a passphrase. We use an SSH key because we believe that passwords are less secure. So, you might think that if you're using an SSH key, you will be safe. That's not entirely true. When a person takes control over your private key, they have access to every system you have put your public key in. However, when you use a passphrase for your SSH key, not only do they have to steal your private key, but also know the password that goes with it.
- Mastering Entity Framework Core 2.0
- Python量化投資指南:基礎、數據與實戰
- WebAssembly實戰
- Web交互界面設計與制作(微課版)
- Data Analysis with IBM SPSS Statistics
- Flash CS6中文版應用教程(第三版)
- Unity 5.x By Example
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- Python全棧開發:基礎入門
- 基于GPU加速的計算機視覺編程:使用OpenCV和CUDA實時處理復雜圖像數據
- PHP程序設計經典300例
- Mastering Citrix? XenDesktop?
- MEAN Blueprints
- Lucene 4 Cookbook
- Visual C#網絡編程