Vmware virtual Mechine connect VScode Error: channel 3: open failed: administratively prohibited: open failed

#open failed: administratively prohibited: open failed
Modify
/etc/ssh/sshd_config :
AllowTcpForwarding yes
After that, restart the sshd service.
/etc/init.d/sshd restart , or.
/etc/rc.d/init.d/sshd restart
Note: Leave the comment option unchanged and set AllowTcpForwarding to yes.

Read More: