本地主机准备
remote - ssh:
服务器准备
官方文档提供的提前准备
distribution | base requirements | remote - ssh requirements | notes |
---|---|---|---|
general | kernel >= 4.18, glibc >=2.28, libstdc++ >= 3.4.25, tar | openssh server, bash , and curl or wget | run 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 arm32 | libatomic1 | no additional requirements. | |
ubuntu 20.04+, debian 10+, raspberry pi os buster/10+ and downstream distributions | libc6 libstdc++6 ca-certificates tar | openssh-server bash and curl or wget | requires kernel >= 4.18, glibc >= 2.28, libstdc++ >= 3.4.25. |
rhel / centos 8+ | glibc libgcc libstdc++ ca-certificates tar | openssh-server bash and curl or wget | requires 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 tar | curl or wget | requires 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内容请搜索代码网以前的文章或继续浏览下面的相关文章希望大家以后多多支持代码网!
发表评论