[linu] ARM install vscode server, local vscode remote server development

Record the development in arm.

1. VSCODE installation

1. Download the latest version from the official website.
My development board is arm32, so download the .deb version of arm32.
insert image description here
2. Install
the deb version:

安装
sudo dpkg -i 文件名.deb

如果出现依赖关系错误,可以使用以下命令修复:
sudo apt-get install -f

如果需要卸载deb文件,可以使用以下命令:
sudo dpkg -r 文件名

tar.gz version:

2. Log in to the remote server locally

Telnet Reference: Reference

3. Password-free login

Password-free reference article: Reference

1. Local key generation
Find C:\user\xxx.ssh on the local computer
insert image description here
and generate locally:
insert image description here

2. Server

Upload the locally generated id_rsa.pub file to the server ~/.shh/ directory, and rename it to authorized_keys

Restart the sshd service of the server (it is best to execute the following three commands once)

systemctl restart sshd restart sshd service

systemctl reload sshd makes the system reload the sshd service configuration

service sshd restart

Generally, restart vscode here to achieve password-free login

question:
.ssh directory not found
Solution:
If you can’t find the .ssh directory after executing cd ~/.ssh after generating the secret key above, it’s because you haven’t logged in with ssh. Use ssh to log in to generate the .ssh directory, and then re-execute ssh-keygen to generate key
insert image description here

Guess you like

Origin blog.csdn.net/qq_37280428/article/details/129782246
Recommended