|
|
## connect to ampl virtual machine from os x
|
|
|
add those lines in your "~/.ssh/config
|
|
|
```
|
|
|
Host *
|
|
|
UseKeychain yes
|
|
|
AddKeysToAgent yes
|
|
|
Host braque
|
|
|
HostName braque.mema.ucl.ac.be
|
|
|
User yourlogin
|
|
|
Host AMPL_MEMA
|
|
|
HostName leech.mema.ucl.ac.be
|
|
|
Port 2223
|
|
|
User yourlogin
|
|
|
ProxyCommand ssh -q braque nc %h %p $*
|
|
|
```
|
|
|
create a ssh key if you don't have one already (you can choose your passphrase)
|
|
|
```
|
|
|
ssh-keygen -t rsa
|
|
|
```
|
|
|
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 AMPL_MEMA:
|
|
|
```
|
|
|
add this key to your session keyring
|
|
|
```
|
|
|
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
|
|
|
Install fuse and sshfs from [osxfuse](https://osxfuse.github.io/), then create a local directory and mount the remote machine :
|
|
|
```
|
|
|
mkdir ampl_mema
|
|
|
sshfs AMPLE_MEMA: ample_mema
|
|
|
```
|
|
|
you can now edit and copy files transparently
|
|
|
When you are done, unmount the remote directory with
|
|
|
```
|
|
|
umount ample_mema
|
|
|
``` |
|
|
\ No newline at end of file |