当前位置:网站首页>Terminal convenient SSH connection
Terminal convenient SSH connection
2022-06-30 05:20:00 【Cn Sirius】
Ordinary ssh Method
The physical machine ssh Connecting virtual machines
Those without foundation can be connected like this : complex
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , Failed to save the picture , The source station may be burglar proof 851229742)(C:\Users\CNsirius\AppData\Roaming\Typora\typora-user-images\image-20220610164418979.png)]](/img/26/eaa6a2a434db66421b24cdedab3050.png)

Terminal shortcut ssh
Copy 's Ahead
Open terminal settings 
Add a new configuration file on the left -> Add a new control file
Then fill in the second line, the command line
ssh Virtual machine login user name @ virtual machine IP
In fact, that is ssh Copied above
preservation

It can be quickly opened at the physical terminal

Unclassified ssh Sign in
Running on the physical machine :
ssh-keygen
Enter the first path in the back
Enter directly after the password ( You can log in without password )

Your identification has been saved in C:\Users\ /.ssh/id_rsa.
Your public key has been saved in C:\Users\ /.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:ln6ZkrhHWH*********tRbGBeooF4g \ @
The key's randomart image is:
+---[RSA 3072]----+
| .o.*.+ |
|.. o..+ * . |
|***********. |
| *.o.o+.o |
|. = +.o*S . |
| ********* |
+----[SHA256]-----+
Find the directory on the first line , hold id_rsa.pub Copy files to virtual machine
perform
cat id_rsa.pub >> ~/.ssh/authorized_keys
chmod 770 ~/.ssh/authorized_keys
Report not found .ssh Words
Run... First
ssh-keygenThe settings are the same as those on the physical machine
Then the terminal can open the virtual machine without entering the password
Report a mistake
Password is still required :
To the virtual machine keygen It must be a public key pub
Connection timeout
After a while Not even
yes ip Not fixed
The virtual machine needs to be ip Fix
Bridge and net The pattern is fixed IP The method will take time to send
Make a transmission here at that time
边栏推荐
- [typescript] defines the return value type of promise
- 力扣(LeetCode)180. 连续出现的数字(2022.06.29)
- Configuration and use of controllers and routes in nestjs
- 《谁动了我的奶酪》读后感
- Unity project hosting platform plasticscm (learn to use 2)
- GoLand No Tests Were Run : 不能使用 fmt.Printf() <BUG>
- Ugui uses its own function to realize reverse mask
- [notes] unity webgl input Chinese
- East Tower attack and defense world - XSS bypasses the safety dog
- 3D rotation album
猜你喜欢

Unity + hololens common basic functions

Super comprehensive summary | related improvement codes of orb-slam2 / orb-slam3!

Ugui uses its own function to realize reverse mask

Win10 vs2015 compiling curaengine

遥感图像/UDA:Curriculum-Style Local-to-Global Adaptation for Cross-Domain Remote Sensing Image Segmentat

Unity ugui text value suspended enlarged display add text background

使用码云PublicHoliday项目判断某天是否为工作日

Force buckle 704 Binary search

LxC and LXD container summary
![[typescript] cannot redeclare block range variables](/img/52/2fd3071ca9e3c5023c6b65961e2cf7.jpg)
[typescript] cannot redeclare block range variables
随机推荐
Passing values between classes using delegates and events
Under what conditions does the Z-index attribute expire?
QT connecting external libraries
[notes] unity Scrollview button page turning
【VCS+Verdi聯合仿真】~ 以計數器為例
PKCs 12:personal information exchange syntax v1.1 translation part I
VFPBS上传EXCEL并保存MSSQL到数据库中
Unity shader flat shadow
企事业单位源代码防泄露工作该如何进行
炒美原油的国际交易平台如何能保障资金安全呢?
Basic operations of Oracle data
Log writing specification
Ripple effect of mouse click (unity & shader)
【VCS+Verdi联合仿真】~ 以计数器为例
[notes] unity webgl input Chinese
Nestjs配置静态资源,模板引擎以及Post示例
Unity + hololens common basic functions
Unity + hololens2 performance test
mmcv常用API介绍
Nestjs中控制器和路由的配置使用