|
|
# Using ampl virtual machine
|
|
|
Summary :
|
|
|
- create an account to connect to the machine : ask Jonathan (jonathan.lambrechts@uclouvain.be)
|
|
|
- create an account to connect to the machine : ask Gaëtan (gaetan.dagnelie@uclouvain.be)
|
|
|
- connect to the virtual machine following one of the procedure described bellow (depending of your platform)
|
|
|
- transfer file to the virtual machine
|
|
|
- run ample (see last section)
|
|
|
|
|
|
## connecting to the virtual machine
|
|
|
## connecting to the ampl machine
|
|
|
The machine is only accessible from inside the UcLouvain Network, to connect from outside, it is necessary to use the UcLouvain VPN.
|
|
|
### from windows
|
|
|
This section describes the use of mobaxterm, if you are familiar with other ssh tools (like putty and winscp) you can use them. It is also possible to enable the "linux subsystem" of windows 10 and follow the "from macOS or linux" section.
|
|
|
- download and install mobaxterm home edition : https://mobaxterm.mobatek.net/download-home-edition.html
|
|
|
- create a new session using the menu "sessions->new session" then choose the "ssh" session type.
|
|
|
- set "remote host" to "130.104.237.27", tick "specify username" and type your login.
|
|
|
- select the "Network settings tab" and tick the "Connect through SSH gateway" option. In "Geteway SSH server", put "braque.mema.ucl.ac.be" and put your login in the "User" field
|
|
|
- click on "OK", enter your password two times and you are done.
|
|
|
- next time, to re-open a new session, just double-click on the "leech" session in the left panel.
|
|
|
- click on "OK", enter your password and you are done.
|
|
|
- next time, to re-open a new session, just double-click on the "ampl" session in the left panel.
|
|
|
|
|
|
### from macOS or linux
|
|
|
add those lines in your "~/.ssh/config
|
... | ... | @@ -21,21 +21,16 @@ add those lines in your "~/.ssh/config |
|
|
Host *
|
|
|
UseKeychain yes
|
|
|
AddKeysToAgent yes
|
|
|
Host braque
|
|
|
HostName braque.mema.ucl.ac.be
|
|
|
User yourlogin
|
|
|
Host ampl01
|
|
|
HostName 130.104.237.27
|
|
|
HostName ampl01.immc.ucl.ac.be
|
|
|
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 ampl01
|
|
|
copy this key on ampl01
|
|
|
```
|
|
|
ssh-copy-id -i .ssh/id_rsa.pub braque:
|
|
|
ssh-copy-id -i .ssh/id_rsa.pub ampl01:
|
|
|
```
|
|
|
add this key to your session keyring
|
... | ... | |