随笔-376  评论-37  文章-0  trackbacks-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了!
翘里哇!
posted on 2023-10-22 18:26 小王 阅读(71) 评论(0)  编辑 收藏 引用 所属分类: linux

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理