当前位置:网站首页>The error log of vscode connecting to the server shows the problem of "insufficient permission". Directly use root to connect
The error log of vscode connecting to the server shows the problem of "insufficient permission". Directly use root to connect
2022-06-25 20:03:00 【The ninth tree】
Use vscode There are many ways to connect to the server , You can reconnect it twice , Give me a mask .
step
First step : Create in the user directory of this computer .ssh Folder , Enter the folder and press shift+ Right mouse button , Get into powershell Command window , Enter the command ssh-keygen Enter to pass rsa The encryption algorithm generates a pair of keys , A public key and a private key , If you don't know about asymmetric encryption, you can baidu by yourself .
The second step : Public key ( The suffix has a pub) Send to server , Type... On the server cd ~/.ssh/ Get into .ssh After the directory , Input vim authorized_keys, Copy all the public key contents just generated by the machine to this file , Save and exit .
The third step : Get into vscode in ,.shh In the configuration file of usr fill root.
This should be the server's root User password free login , If the linux I'm not very familiar with it. I suggest not to do so , It is easy to confuse the laboratory server , I'm familiar linux Do it again .
For non root user ,vscode Connection or error , Maybe you can try root In the catalog .vscode-server Forced deletion of files , namely rm -rf .vscode-server, Some people say that such a connection will be automatically generated .vscode-server, It's very metaphysical .
边栏推荐
- Validation of TTF font by validator of laravel
- Some pictures of real machine preview development and debugging are not shown
- Vscode debugging PHP configuration Xdebug
- 6、 Configuration resolution of hikariconfig
- PHP FPM, workman, spoole, golang simple performance test
- Yum command
- Est - il sûr d'ouvrir un compte avec de nouvelles dettes? Une faible Commission est - elle crédible?
- 2.2 step tariff
- Applet Click to return to the top 2 methods
- 打新债证券开户安全吗
猜你喜欢

Vulnhub range - darkhole 1

Automatic fitting when the applet reaches the top

2.14(Knight Moves)

Number of wechat applet custom input boxes

mysql load data infile

New features of php7

<C>. Rolling phase division

Arduino ide + esp8266+mqtt subscribe to publish temperature and humidity information

String since I can perform performance tuning, I can call an expert directly

Now meditation: crash service and performance service help improve application quality
随机推荐
Vulnhub range the planes: mercury
Simple native JS tab bar switching
Is it safe to open a new bond securities account
PostgreSQL change table owner
<C>. Branch and loop statements
PHP Chinese regular
System optimization method
Wechat applet cloud function does not have dependency option installed
2.5 find the sum of the first n terms of the square root sequence
JQ implements tab switching
<C>. Rolling phase division
DARKHOLE 2
Principles of MySQL clustered index and non clustered index
The native JS mobile phone sends SMS cases. After clicking the button, the mobile phone number verification code is sent. The button needs to be disabled and re enabled after 60 seconds
Validation of TTF font by validator of laravel
Arduino ide + esp8266+mqtt subscribe to publish temperature and humidity information
PAT B1096
Mysql database design suggestions
Redis is a loser. If you don't understand the usage specification, you will spoil it
Curtain down and departure