当前位置:网站首页>Create SSH key pair configuration steps
Create SSH key pair configuration steps
2022-06-26 05:09:00 【Light ink CGZ】
establish SSH Secret key pair
effect
Created SSH Secret key pair , be used for GitLab Warehouse pull code , And test the login authentication of the server .
Check if the secret key pair exists
It's generating SSH Before the key , You can check , Does it already exist SSH secret key . Here are two ways :
- The input terminal
ls -al ~/.ssh
Check to see if there are existing SSH secret key :
# List ssh Under the table of contents .ssh file View on terminal
$ ls -al ~/.ssh
- The input terminal
cat ~/.ssh/id_rsa.pub
You can output the contents of the public key
- stay Finder Interface view . Enter the command to open automatically Finder, You can view it
# open Command to open ssh Secret key pair , Hide storage directory .ssh
$ open ~/.ssh
By default , The file name of the public key is id_rsa.pub
Generate a new SSH Secret key pair
- Open the terminal .
- The terminal enters the following command , Put the mailbox ** Replace with yourself ** Corporate email .
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
This will use your own corporate email as an identifier , Create a new ssh secret key .
Be careful : If the same directory already exists , It will cover the previous , If you continue to use , Pay attention to backup .
Generating public/private rsa key pair.
- When the system prompts “ Enter the file where you want to save the key ” when , press return . Use the secret key to store the location . The default is
/Users/ user /.ssh/id_rsa
.
Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]
- Next, you will be prompted for the password . The password is not configured for the time being , Ignore tips , Press enter twice in succession , Complete key pair creation .
Enter passphrase (empty for no passphrase): [Type a passphrase]
Enter same passphrase again: [Type passphrase again]
Reference resources :
GitHub Official generation SSH
GitLab Official document generation SSH
边栏推荐
- Sentimentin tensorflow_ analysis_ cell
- 6.1 - 6.2 公钥密码学简介
- tensorlow:cifar100_ train
- 程序人生
- UWB超高精度定位系统架构图
- Douban top250
- PowerShell runtime system IO exceptions
- The beautiful scenery is natural, and the wonderful pen is obtained by chance -- how is the "wonderful pen" refined?
- Implementation of IM message delivery guarantee mechanism (II): ensure reliable delivery of offline messages
- Collections and dictionaries
猜你喜欢
PSIM software learning ---08 call of C program block
图像翻译/GAN:Unsupervised Image-to-Image Translation with Self-Attention Networks基于自我注意网络的无监督图像到图像的翻译
torchvision_ Transform (image enhancement)
Rsync common error messages (common errors on the window)
0622 horse palm fell 9%
Statsmodels Library -- linear regression model
torchvision_transform(图像增强)
《财富自由之路》读书之一点体会
C# 39. string类型和byte[]类型相互转换(实测)
2.< tag-动态规划和常规问题>lt.343. 整数拆分
随机推荐
【Latex】错误类型总结(持更)
Transport layer TCP protocol and UDP protocol
Briefly describe the pitfalls of mobile IM development: architecture design, communication protocol and client
ssh连win10报错:Permission denied (publickey,keyboard-interactive).
Create a binary response variable using the cut sub box operation
PHP二维/多维数组按照指定的键值来进行升序和降序
ModuleNotFoundError: No module named ‘numpy‘
Protocol selection of mobile IM system: UDP or TCP?
Multipass Chinese document - setup driver
Happy New Year!
Implementation of IM message delivery guarantee mechanism (II): ensure reliable delivery of offline messages
A company crawling out of its grave
Codeforces Round #800 (Div. 2)
Yolov5 super parameter setting and data enhancement analysis
Technical problems to be faced in mobile terminal im development
[ide (imagebed)]picgo+typora+aliyunoss deployment blog Gallery (2022.6)
Multipass Chinese document - use packer to package multipass image
PHP one sentence Trojan horse
Computer Vision Tools Chain
What is UWB in ultra-high precision positioning system