Is it possible to use the “code” command in SSH’ed terminal to open VS Code on local machine with SSH extension?

I found much better & simple answer thanks to this post. Simply create new script file named code with below contents & put file under any folder from $PATH. (echo $PATH to see what folders you can use) #! /usr/bin/env zsh local max_retry=10 for i in {1..$max_retry} do local script=$(echo ~/.vscode-server/bin/*/bin/remote-cli/code(*oc[$i]N)) if [[ -z ${script} … Read more

How do I add an SSH key in gitlab?

Go to your GitLab account: https://gitlab.com/ Click on Settings on the top right drop-down, which will appear once you select the icon(white-fox image [specific to my profile]). Click on Settings on the top right drop-down, which will appear once you select the icon(white-fox image). Click on SSH Keys: Add/Paste the SSH Key. How to generate … Read more

tech