Relevant info to set up my preferred work environment
Info: https://code.visualstudio.com/download
Info: https://code.visualstudio.com/docs/remote/ssh
-
Install VS code compatible SSH client to connect to your servere of choice. (Putty is not supported)
- Ensure you have installation privilede (request via ICT)
- on windows machine install OpenSSH for Windows (use PowerShell script, follow steps in "install_openssh.ps1", info: https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=powershell)
-
Install remote SSH extension from within VS code
-
ctrl + shift + p , select: Remote-SSH: Add New SSH Host Info: https://code.visualstudio.com/docs/remote/ssh
-
ssh to your server by typing ssh username@serverofinterest
-
open config file where instructions for the ssh connection are described
- file pathe: drive/user/.ssh/config
- e.g. specify forwarding, username,... (see example_config)
-
Promt to enter password(s)
Prefered set-up to have VS code interface resemble R studio. Set up from: https://www.r-bloggers.com/2020/07/setting-up-vs-code-for-python-development-like-rstudio/ File path on current machine: /home/melanie/.vscode-server/data/Machine/settings.json