IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    使用VS Code ssh远程连接openEuler主机,始终连接不上

    小王发表于 2023-10-22 10:26:00
    love 0
    检查防火墙:
    systemctl status firewalld

    果然防火墙开启中
    关闭防火墙
    systemctl status firewalld


    cd /etc/ssh
    vim sshd_config

    下面这几项改为yes:
    AllowTcpForwarding yes
    AllowAgentForwarding yes
    GatewayPorts yes

    保存
    systemctl restart sshd.service

    再次使用VS Code进行ssh远程连接,O了!
    翘里哇!


    小王 2023-10-22 18:26 发表评论


沪ICP备19023445号-2号
友情链接