查看: 22|回复: 0

[其他] 如何使用vscode连接openEuler服务器

[复制链接]

0

主题

0

回帖

0

积分

积极分子

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2011-9-10
发表于 2024-8-27 14:48:53 | 显示全部楼层 |阅读模式

本地主机准备

Remote - SSH

服务器准备

官方文档提供的提前准备

DistributionBase RequirementsRemote - SSH RequirementsNotes
Generalkernel >= 4.18, glibc >=2.28, libstdc++ >= 3.4.25, tarOpenSSH server, bash, and curl or wgetRun ldd --version to check the glibc version. Run strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX to see if libstdc++ 3.4.25 is available.
General for Arm32libatomic1No additional requirements.
Ubuntu 20.04+, Debian 10+, Raspberry Pi OS Buster/10+ and downstream distributionslibc6 libstdc++6 ca-certificates taropenssh-server bash and curl or wgetRequires kernel >= 4.18, glibc >= 2.28, libstdc++ >= 3.4.25.
RHEL / CentOS 8+glibc libgcc libstdc++ ca-certificates taropenssh-server bash and curl or wgetRequires kernel >= 4.18, glibc >= 2.28, libstdc++ >= 3.4.25.
Alpine Linux 3.16+musl libgcc libstdc++. musl >= 1.2.3, glibc not required.Not yet supported.Supported in Dev Containers and WSL. Extensions installed in the container may not work due to glibc dependencies in extension native code.
openSUSE Leap / SUSE Linux Enterprise 15+glibc libgcc_s1 libstdc++6 ca-certificates gzip tarcurl or wgetRequires kernel >= 4.18, glibc, libstdc++6

针对openEuler的准备

缺少tar 解压工具

检查是否缺少tar解压工具

[root@localhost ~]# tar
-bash: tar:未找到命令

使用以下命令安装tar

dnf install tar

端口转发未开启

我们查看sshd 服务配置文件

[root@localhost ~]# cat /etc/ssh/sshd_config

找到以下两个配置

AllowTcpForwarding no
AllowAgentForwarding no

将 ‘ no ‘改为’ yes ‘

AllowTcpForwarding yes
AllowAgentForwarding yes

重启sshd 服务

systemctl restart sshd.service

到此这篇关于如何使用vscode连接openEuler服务器的文章就介绍到这了,更多相关vscode连接openEuler内容请搜索琼殿技术社区以前的文章或继续浏览下面的相关文章希望大家以后多多支持琼殿技术社区!

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部