当前位置:网站首页>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.pubCopy 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 .
边栏推荐
- 树形DP AcWing 285. 没有上司的舞会
- Redux - learning notes
- Really explain the five data structures of redis
- Find the intersection of line segments
- 分配异常的servlet
- [rust notes] 08 enumeration and mode
- Parameters of convolutional neural network
- [concurrent programming] synchronization container, concurrent container, blocking queue, double ended queue and work secret
- [rust notes] 02 ownership
- PHP uses foreach to get a value in a two-dimensional associative array (with instances)
猜你喜欢

樹形DP AcWing 285. 沒有上司的舞會

Unity editor expansion - controls, layouts
![[redis] redis persistent RDB vs AOF (source code)](/img/57/b6a86c49cedee31fc00dc5d1372023.jpg)
[redis] redis persistent RDB vs AOF (source code)

Memory search acwing 901 skiing

Monotonic stack -503 Next bigger Element II

请求参数的发送和接收

LeetCode 535. TinyURL 的加密与解密

Character pyramid

TP5 multi condition sorting

Facial expression recognition based on pytorch convolution -- graduation project
随机推荐
Drawing maze EasyX library with recursive backtracking method
First Servlet
Unity Editor Extension - Outline
Binary to decimal, decimal to binary
[rust notes] 06 package and module
Escape from heaven and forget what he suffered. In ancient times, it was called the punishment of escape from heaven. Article collection
我们有个共同的名字,XX工
SQL statement error of common bug caused by Excel cell content that is not paid attention to for a long time
Apache startup failed phpstudy Apache startup failed
Location of package cache downloaded by unity packagemanager
<, < <,>, > > Introduction in shell
Sending and receiving of request parameters
二进制转十进制,十进制转二进制
LinkedList set
I made mistakes that junior programmers all over the world would make, and I also made mistakes that I shouldn't have made
ES6 promise learning notes
producer consumer problem
Mortgage Calculator
【Rust笔记】02-所有权
Format - C language project sub file