当前位置:网站首页>Vscode connect to remote server
Vscode connect to remote server
2022-07-03 08:54:00 【Xizhou theory】
VSCode Connect to remote server ( Unclassified )
List of articles
1、VSCode End
1.1、VSCode Installing a plug-in Remote Development
1.2、 To configure ssh config
Select in remote Explorer SSH Targets
Configure the following in the first file and save .
Host xxx
HostName xxx.xxx.xxx.xxx
User xxx
Port xxxx
# Host Server alias
# HostName yes linux virtual machine ip Address ;
# user yes linux user name ;
# Port Is the port number
1.3、 Sign in
Connect to server , Right click the server alias , Click to connect , Enter the server password in the pop-up window or terminal window , To log in .
2、 Configure password free login
2.1、 install openssh
Run as administrator window Powershell
(windows key +x, Then choose (A)[1]), Then type the following two commands [2]:
The first order :
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
( This one is used to check whether there is one suitable for installation openssh
Software , Under normal circumstances, there should be the following return :)
Name : OpenSSH.Client ~~~~ 0.0.1.0
State : NotPresent
Name : OpenSSH.Server ~~~~ 0.0.1.0
State : NotPresent
The second order :
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
( This one is used to install openssh Software , If the installation is completed, return as follows :)
Path :
Online : True
RestartNeeded : False
2.2、 Key login
Create key :
ssh-keygen
Then just go straight back .
After execution ,~/.ssh/
There will be two more files in the directory :
id_rsa
: Private keyid_rsa.pub
: Public key
Found in local fileid_rsa.pub
Copy the content to the server side~/.ssh/authorized_keys
Which server do you want to log in without password , Just pass the public key to which server .
So now vscode You can complete the secret free remote login server .
边栏推荐
- TP5 multi condition sorting
- Convert video to GIF
- 如何应对数仓资源不足导致的核心任务延迟
- Really explain the five data structures of redis
- [rust notes] 05 error handling
- 20220630 learning clock in
- [concurrent programming] consistency hash
- [redis] redis persistent RDB vs AOF (source code)
- [concurrent programming] atomic operation CAS
- 请求参数的发送和接收
猜你喜欢
How to place the parameters of the controller in the view after encountering the input textarea tag in the TP framework
注解简化配置与启动时加载
Allocation exception Servlet
数据库原理期末复习
数位统计DP AcWing 338. 计数问题
Concurrent programming (III) detailed explanation of synchronized keyword
First Servlet
单调栈-84. 柱状图中最大的矩形
[concurrent programming] working mechanism and type of thread pool
Complex character + number pyramid
随机推荐
使用dlv分析golang进程cpu占用高问题
Unity Editor Extension - drag and drop
【Rust 笔记】11-实用特型
二进制转十进制,十进制转二进制
Servlet的生命周期
20220630学习打卡
Concurrent programming (VI) ABA problems and solutions under CAS
[concurrent programming] consistency hash
记忆化搜索 AcWing 901. 滑雪
Talking about: is the HashSet set ordered or disordered /hashset set unique, why can we store elements with the same content
TP5 order multi condition sort
Notes and bugs generated during the use of h:i:s and y-m-d
Markdown learning
[rust notes] 06 package and module
[concurrent programming] explicit lock and AQS
[concurrent programming] working mechanism and type of thread pool
Unity Editor Extension - Outline
【Rust 笔记】10-操作符重载
C language student management system based on linked list, super detailed
Unity multi open script