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了!
翹里哇!
保存
systemctl restart sshd.service
再次使用VS Code進行ssh遠程連接,O了!
翹里哇!