当前位置:网站首页>Vscode uses remote SSH connection and the solution of connection failure
Vscode uses remote SSH connection and the solution of connection failure
2022-07-27 09:27:00 【Dusk vending machine】
Step 1 Remote-SSH Installation and basic configuration
First installation vscode plug-in unit 
After installation , Click on vscode Lower left Icon ( The green part of the figure below )

open ssh The configuration file

choice .ssh\config

Add the configuration information of the host to be connected to the configuration file 
The demonstration here is to log in through the private key , About creating private keys and public keys ssh There are many tutorials connected
There are many ssh Secret free login method , End of configuration ssh After login without secret, you don't need IdentityFile The information of
Host Host name
HostName Server address
Port Port number
User user name
IdentityFile Private key address on this computer
Step 2 Connection failure and its solution
When I log in with my private key , The following problems occurred , The root cause is the key file id_rsa File access rights for 
If in linux Under the system , take id_rsa The permission of the file is changed to 600, have access to sudo chmod -R 600 filename complete
If it's in windows It's a little troublesome under the system
Modify its permission as follows

The specific operation method is , Right click the key file -> attribute -> Security -> senior -> Disable inheritance -> Remove all inherited permissions from this object -> application , Clear all permissions .
such , We open the properties again -> Security , When viewing, the group or user name permission is empty ,
Back to properties -> Security -> senior -> add to -> Choose the subject -> senior -> Find now

Confirm after selection .
In this way, the permission is modified .
Try connecting again

After a successful connection , You can choose to open a file or folder in a remote directory , You can also choose to open local files or folders

If there is a problem that cannot be solved , Welcome to leave a message !
边栏推荐
- 网易笔试之解救小易——曼哈顿距离的典型应用
- 七月集训(第13天) —— 双向链表
- openharmony萌新贡献指南
- Openharmony Mengxin contribution Guide
- 基于 FPGA 按键控制呼吸灯原理、仿真及验证全过程
- 内存墙简介
- 1344. Included angle of clock pointer
- Ztree custom title attribute
- 【云原生】我怎么会和这个数据库杠上了?
- Common operations of BOM and compatible writing methods for obtaining page / window height, width and scrolling
猜你喜欢
![[C language _ study _ exam _ review lesson 3] overview of ASCII code and C language](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[C language _ study _ exam _ review lesson 3] overview of ASCII code and C language

ES6 new - deconstruction assignment of array / object

Nacos做注册中心使用

ESP8266-Arduino编程实例-中断

BGP federal experiment

IDL 6S lookup table

BGP的社团属性

NPM install error forced installation

1344. Included angle of clock pointer

Data interaction based on restful pages
随机推荐
Two tips in arkui framework
The fourth day of learning C language
ES6 new - object part
Common operations of BOM and compatible writing methods for obtaining page / window height, width and scrolling
1344. Included angle of clock pointer
【CTF】ciscn_ 2019_ es_ two
ArkUI中的显式动画
2068. Check whether the two strings are almost equal
2022 software test interview questions 200 big factory interview true questions brushed to get 10K positions
js call和apply
6S parameters
Antdesign a-modal自定义指令实现拖拽放大缩小
Sentry 2 orbital data download
ArcGIS Pro publishing service
[C language - zero foundation lesson 13] the mystery of string
七月集训(第08天) —— 前缀和
Binary tree traversal
七月集训(第20天) —— 二叉搜索树
Special exercises for beginners of C language to learn code for the first time
pollFirst(),pollLast(),peekFirst(),peekLast()