Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1010 Bytes

connection-to-hpc.md

File metadata and controls

42 lines (31 loc) · 1010 Bytes
title description category subcategory tags
Connecting to hpc from local
This code helps with connecting to hpc computers
computing
tips_tricks
ssh
hpc

osx

Use Homebrew to get linux-like functionality on OSX

Use XQuartz for X11 window functionality in OSX.

Odyssey with 2FA

Enter one time password into the current window (https://github.com/jwm/os-x-otp-token-paster)

Fix 'Warning: No xauth data; using fake authentication data for X11 forwarding'

Add this to your ~/.ssh/config on your OSX machine:

Host *
  XAuthLocation /opt/X11/bin/xauth

Use ssh keys on remote server

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