当前位置:网站首页>SSH keygen specifies the path
SSH keygen specifies the path
2022-06-26 05:52:00 【self85】
ssh-keygen -t rsa -b 2048 -f ./id_rsa
Be careful :
Parameters (-f): It specifies the file name and path , Not a folder . So the effect of the above code is :
Generate a pair named... Under the current folder id_rsa The key of , There are two files
Custom path , You must first mkdir .ssh Folder
And then use pwd Get the full spelling of the path you want to generate (/home/kh/GitLab), Then specify the file name after the path (/.ssh/id-rsa)
[email protected]:~/GitLab/.ssh$ ssh-keygen -t rsa -C ‘m’ -f /home/kh/GitLab/.ssh/id-rsa
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/kh/GitLab/.ssh/id-rsa.
Your public key has been saved in /home/kh/GitLab/.ssh/id-rsa.pub.
The key fingerprint is:
SHA256:83SzHvJvvwL0F9FlrO3P5xAam7ybYenB31i1sarMFfk m
The key’s randomart image is:
±–[RSA 2048]----+
| .=|
| oo|
| o.|
| . o…|
| S o =o.oo|
| + = Xoo*|
| o #.oEo|
| o*.Oo=+|
| +O==+*|
边栏推荐
- Old love letters
- 【 langage c】 stockage des données d'analyse approfondie en mémoire
- SQL Server 函数
- Customize WebService as a proxy to solve the problem of Silverlight calling WebService across domains
- Day2- syntax basis and variables
- Household accounting procedures (the second edition includes a cycle)
- ZigBee learning in simple terms Lecture 1
- 5 minutes to learn regular expressions
- Implementation of third-party wechat authorized login for applet
- 家庭记账程序(第二版 加入了循环)
猜你喜欢
随机推荐
MEF framework learning record
Definition of Halcon hand eye calibration
解决在win10下cmder无法使用find命令
Talk 5 wireless communication
花生壳内网穿透映射NPM私服问题
SQL Server视图
睛天霹雳的消息
ZigBee explain in simple terms lesson 2 hardware related and IO operation
售前分析
bingc(继承)
Given two corresponding point sets AB, how to estimate the parameters of the specified transformation matrix R?
【C语言】深度剖析数据在内存中的存储
5 minutes to learn regular expressions
新的征程
1212312321
421- binary tree (226. reversed binary tree, 101. symmetric binary tree, 104. maximum depth of binary tree, 222. number of nodes of complete binary tree)
工厂方法模式、抽象工厂模式
String class learning
Machine learning 07: Interpretation of PCA and its sklearn source code
循环位移









