• 设为首页
  • 收藏本站
  • 积分充值
  • VIP赞助
  • 手机版
  • 微博
  • 微信
    微信公众号 添加方式:
    1:搜索微信号(888888
    2:扫描左侧二维码
  • 快捷导航
    福建二哥 门户 查看主题

    如何使用vscode连接openEuler服务器

    发布者: 琛瑞6678 | 发布时间: 2025-8-16 08:42| 查看数: 78| 评论数: 0|帖子模式

    本地主机准备

    Remote - SSH


    服务器准备


    官方文档提供的提前准备

    DistributionBase RequirementsRemote - SSH RequirementsNotesGeneralkernel >= 4.18, glibc >=2.28, libstdc++ >= 3.4.25, tarOpenSSH server,
    1. bash
    复制代码
    , and
    1. curl
    复制代码
    or
    1. wget
    复制代码
    Run
    1. ldd --version
    复制代码
    to check the glibc version. Run
    1. strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
    复制代码
    to see if libstdc++ 3.4.25 is available.General for Arm32
    1. libatomic1
    复制代码
    No additional requirements.Ubuntu 20.04+, Debian 10+, Raspberry Pi OS Buster/10+ and downstream distributions
    1. libc6 libstdc++6 ca-certificates tar
    复制代码
    1. openssh-server bash
    复制代码
    and
    1. curl
    复制代码
    or
    1. wget
    复制代码
    Requires kernel >= 4.18, glibc >= 2.28, libstdc++ >= 3.4.25.RHEL / CentOS 8+
    1. glibc libgcc libstdc++ ca-certificates tar
    复制代码
    1. openssh-server bash
    复制代码
    and
    1. curl
    复制代码
    or
    1. wget
    复制代码
    Requires kernel >= 4.18, glibc >= 2.28, libstdc++ >= 3.4.25.Alpine Linux 3.16+
    1. 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
    1. glibc
    复制代码
    dependencies in extension native code.openSUSE Leap / SUSE Linux Enterprise 15+
    1. glibc libgcc_s1 libstdc++6 ca-certificates gzip tar
    复制代码
    1. curl
    复制代码
    or
    1. wget
    复制代码
    Requires kernel >= 4.18, glibc, libstdc++6
    针对openEuler的准备


    缺少tar 解压工具

    检查是否缺少tar解压工具
    1. [root@localhost ~]# tar
    2. -bash: tar:未找到命令
    复制代码
    使用以下命令安装tar
    1. dnf install tar
    复制代码
    端口转发未开启

    我们查看sshd 服务配置文件
    1. [root@localhost ~]# cat /etc/ssh/sshd_config
    复制代码
    找到以下两个配置
    1. AllowTcpForwarding no
    2. AllowAgentForwarding no
    复制代码
    将 ‘ no ‘改为’ yes ‘
    1. AllowTcpForwarding yes
    2. AllowAgentForwarding yes
    复制代码
    重启sshd 服务
    1. systemctl restart sshd.service
    复制代码
    到此这篇关于如何使用vscode连接openEuler服务器的文章就介绍到这了,更多相关vscode连接openEuler内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

    来源:互联网
    免责声明:如果侵犯了您的权益,请联系站长(1277306191@qq.com),我们会及时删除侵权内容,谢谢合作!

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    ×

    最新评论

    浏览过的版块

    QQ Archiver 手机版 小黑屋 福建二哥 ( 闽ICP备2022004717号|闽公网安备35052402000345号 )

    Powered by Discuz! X3.5 © 2001-2023

    快速回复 返回顶部 返回列表