title | description | category | subcategory | tags | ||
---|---|---|---|---|---|---|
Connecting to hpc from local |
This code helps with connecting to hpc computers |
computing |
tips_tricks |
|
Use Homebrew to get linux-like functionality on OSX
Use XQuartz for X11 window functionality in OSX.
Enter one time password into the current window (https://github.com/jwm/os-x-otp-token-paster)
Add this to your ~/.ssh/config on your OSX machine:
Host *
XAuthLocation /opt/X11/bin/xauth
This will add your key to the OSX keychain, here your private key is assumed to be named "id_rsa":
ssh-add -K ~/.ssh/id_rsa
Now tell ssh to use the keychain. Add this to the ~/.ssh/config on your OSX machine:
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
XAuthLocation /opt/X11/bin/xauth