Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
software:vscode:darwin [2024-04-24 14:46] – [Using SSH keys] thuachen | software:vscode:darwin [2024-04-26 17:35] – [Using SSH keys] anita | ||
---|---|---|---|
Line 120: | Line 120: | ||
</ | </ | ||
- | ==== Using SSH keys ==== | ||
- | SSH public key authentication is a secure way to authenticate with an SSH host by combining a local " | ||
- | < | ||
- | ssh-keygen -t ed25519 -f ~/ | ||
- | export USER_AT_HOST=" | ||
- | export PUBKEYPATH=" | ||
- | ssh-copy-id -i " | ||
- | </ | ||
- | For Windows, run the following command in a local PowerShell as administrator: | ||
- | < | ||
- | ssh-keygen -t ed25519 -f " | ||
- | $USER_AT_HOST=" | ||
- | $PUBKEYPATH=" | ||
- | $pubKey=(Get-Content " | ||
- | |||
- | </ | ||
- | |||
- | Open VSCode and run " | ||
- | |||
- | < | ||
- | Host DARWIN | ||
- | HostName darwin.hpc.udel.edu | ||
- | User traine | ||
- | Forwardx11 no | ||
- | ForwardX11Trusted no | ||
- | RemoteCommand vscode-shell-proxy -g it_css --salloc-arg=--partition=idle --salloc-arg=--cpus-per-task=4 | ||
- | IdentityFile ~/ | ||
- | </ | ||
- | |||
- | For more information, | ||
==== Connect VSCode to compute node ==== | ==== Connect VSCode to compute node ==== | ||
Now, we can connect the VSCode to the compute node. Follow the similar steps when adding the Config file from the [[: | Now, we can connect the VSCode to the compute node. Follow the similar steps when adding the Config file from the [[: |