檢查防火墻:
systemctl status firewalld
果然防火墻開啟中
關(guān)閉防火墻
systemctl status firewalld
cd /etc/ssh
vim sshd_config
下面這幾項(xiàng)改為yes:
AllowTcpForwarding yes
AllowAgentForwarding yes
GatewayPorts yes
保存
systemctl restart sshd.service
再次使用VS Code進(jìn)行ssh遠(yuǎn)程連接,O了!
翹里哇!
posted on 2023-10-22 18:26
小王 閱讀(132)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
linux