openEuler关闭防火墙以及vscode远程SSH链接

:::warning

目前vscode ssh链接openEuler始终连不上。openEuler是安装在Parallels Desktop里面的。

暂时放弃。

:::

查看目前的防火墙状态

1
systemctl status firewalld

关闭防火墙

1
sudo service firewalld stop

SSH

VSCode Remote SSH
需要在VSCode中安装插件 Remote SSH 或者直接安装 Remote Development ,这样就可以在VSCode中使用SSH了。

修改openEuler虚拟机内部的 /etc/ssh/sshd_config ,启用如下设置:

1
2
3
AllowAgentForwarding yes
AllowTcpForwarding yes
GatewayPorts yes

刷新sshd服务状态:

1
sudo systemctl restart sshd.service

openEuler关闭防火墙以及vscode远程SSH链接

https://hexo.terwer.space/pages/01ec8a/

作者

Terwer

发布于

2022-06-11

更新于

2022-06-11

许可协议

评论