There are different ways to interact with your virtual machines (VM):
- with a web interface (HTTP) with web-enabled cloud appliances, for example RStudio, Jupyter Notebooks;
- with the SSH command line interface (CLI) through a terminal window;
- with a remote graphical desktop (X2Go).
Once the deployment of your VM is done successfully, you can get all connection parameters from the column Access
in the myVM tab
of the biosphere portal. You will find the HTTP link (if any) to your VM, or the SSH parameters (username
and IP address
) to use to connect to your VM.
Simply click on the HTTPS link to be redirected to the web portal provided by your VM. In the case you are requested to provide the username
and password
, or the access token
, they are provided through the parameters field Params
in the Access
column. These security parameters are unique for your VM and only known to you (and of course to the administrators of your group and of the cloud site for operationnal reasons).
An SSH client is installed by default in any computer with Linux (CentOS, Ubuntu, Debian,...), MacOS (doc) and MS Windows 10 (and higher). From MS Windows 10 release, you can use both the PowerShell (doc) or the WSL - Windows Subsystem Linux - based on Ubuntu (doc).
First, you need to configure your SSH parameters before creating a VM with SSH access. Indeed your SSH PubKey will be imported in your VM at its creation, and cannot be modified afterwards.
- Get your SSH PubKey
Open a terminal window (Linux, MacOS) or a PowerShell (MS Windows) and type the following command.
cat $HOME/.ssh/id_rsa.pub
If you do not have already your SSH keys pair, you can create one with the following command.
ssh-keygen -t rsa
- Open your account parameters page
They are available from the user menu in the top-right corner of the Biopshere portal [go].
-
Click the Edit button.
-
Copy your SSH public key in the
Pubkey
field.
You can paste several public keys but be careful that each one is on one line only.
Opening the SSH connection to the VM simply requires you to click on the ssh
link to be redirected to the terminal with an automatic SSH connection to your VM. This will work for MacOS and most Linux. For others systems, you have to copy from the ssh
link, paste the copied text in a terminal or a PowerShell window, and replace the '://' by ' ' in the command to run. The connection will be opened according to the SSH key you configured (see above).
Opening a remote desktop requires to both have configured your SSH parameters (see above) and installed the X2Go client and dependencies.
- [All OS] Install the X2Go client: X2Go download instructions - chapter X2Go Client.
- [MacOS] Install the X server software Xquartz
- [MS Windows 10] Install an X server sotware : VcXsrv or Xming
Linux distributions have usually an X server installed by default.
You can get the connection parameters of the VM in the Params
fields of the column Access
(in the myVM tab).
username
IP/hostname
of the VMsession type
(usually XFCE)
Then, you will use them to configure a session in the X2Go client (see X2Go usage instructions). And do not forget to check the box for Automatic authentication (with SSH agent or default key)
We describe here the use of the PuTTY
tool, which could be used to connect with SSH to your VM, or to a remote desktop with X2Go
tool. This solution should be used only in case your MS Windows OS is older than MS Windows 10. For MS windows 10 and higher, we recommend to use the PowerShell (see above).
First, you need to install PuTTY
on your machine. You can find both the download and installation instructions on the official web site. Take care to use the MSI (‘Windows Installer’).
-
Creating your SSH keys and configuring your Biosphere account
- Open the software
PuTTYgen
from the MS Windows Start menu. - Choose
SSH-2 RSA
in the bottom and click onGenerate
. - Click on the
Save private key
button to save the private key in a file calledClePriv-PUTTY
on the Desktop (This file will be useful to open an SSH connection to your VM with PuTTY). - Exec the menu
Conversions > Export OpenSSH key
to save the private key in a SSH-format file calledClePriv-SSH
, also on the Desktop (You will need it to open a remote desktop with the X2Go tool, or with FileZila to tranfer data to/from the VM). - Copy the public key from the
Public Key for pasting into OpenSSH (...)
at the top of the window. - Paste this copied SSH public key in the field
PubKey
of your Biosphere account parameters.
- Open the software
-
Opening an SSH connection to your VM
- Open the software
PuTTY
from the MS WindowsStart
menu - Copy the
IP/hostname
of your deployed VM from the Biosphere dashboard (put you mouse over?
next to the name of the VM) - Paste the
IP/hostname
in the fieldSession > HostName (or IP address)
(doc) - Select
SSH
for theConnection type
- Fill the
Auto-login username
in the menuData
(doc) with the default one (ubuntu
,debian
orcentos
) according to the Linux system of your VM. - Select the file
ClePriv-PUTTY
in the menuConnection > SSH >Auth > Private key file for authentication
.
- Open the software
-
Opening a remote desktop to your VM
- Open the software
X2Go
from the MS Windows Start menu - Create a new X2GO session (see above)
- Open the software