Connecting to Synology DSM Using VSCode Remote SSH
Connecting to Synology DSM Using VSCode Remote SSH
Quick Start
When connecting to Synology directly via VSCode SSH, you may encounter the following error:
The remote host may not meet VS Code Server’s prerequisites for glibc and libstdc++
https://community.synology.com/enu/forum/10/post/153781
Resolution:
1. Connect to Synology via SSH Command Line
1 | ssh [email protected] |
1 | sudo vim /usr/bin/ldd |
1 | #/bin/sh |
1 | chmod 755 /usr/bin/ldd |
2. Enable Port Forwarding
1 | sudo cp sshd_config sshd_config.bck |
Modify the configuration as follows:
1 | AllowAgentForwarding yes |
Note: There are two occurrences of these parameters. Uncomment them at the beginning of the file and add them again at the end.
It is recommended to avoid modifying the root and admin account configurations. Instead, add a new configuration block at the end of the file for your DSM account (replace “username” with your actual username):
1 | Match User username |
3. Restart sshd
1 | sudo systemctl restart sshd |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments