Update home authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
## connect to ampl virtual machine from os x ## connect to ampl virtual machine from os x
- add those lines in your "~/.ssh/config add those lines in your "~/.ssh/config
``` ```
Host *
UseKeychain yes
AddKeysToAgent yes
Host braque Host braque
HostName braque.mema.ucl.ac.be HostName braque.mema.ucl.ac.be
User yourlogin User yourlogin
...@@ -10,17 +13,21 @@ Host AMPL_MEMA ...@@ -10,17 +13,21 @@ Host AMPL_MEMA
User yourlogin User yourlogin
ProxyCommand ssh -q braque nc %h %p $* ProxyCommand ssh -q braque nc %h %p $*
``` ```
- create a ssh key if you don't have one already (you can choose your passphrase) create a ssh key if you don't have one already (you can choose your passphrase)
``` ```
ssh-keygen -t rsa ssh-keygen -t rsa
``` ```
- copy this key on braque and AMPL_MEMA copy this key on braque and AMPL_MEMA
``` ```
ssh-copy-id -i .ssh/id_rsa.pub braque: ssh-copy-id -i .ssh/id_rsa.pub braque:
ssh-copy-id -i .ssh/id_rsa.pub AMPL_MEMA: ssh-copy-id -i .ssh/id_rsa.pub AMPL_MEMA:
``` ```
- add this key to your session keyring add this key to your session keyring
``` ```
ssh-add .ssh/id_rsa.pub ssh-add -K .ssh/id_rsa.pub
```
you can now connect to the ampl virtual machine simply with
```
ssh AMPL_MEMA
``` ```
## transfer files from os x ## transfer files from os x
\ No newline at end of file