檢查防火墻:
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
小王 閱讀(132)
評論(0) 編輯 收藏 引用 所屬分類:
linux