User Tools

Site Tools


access

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
access [2016/06/09 16:54] – [If you need to copy files from your PC to CorteXlab] trissetaccess [2025/05/14 14:07] (current) cmorin
Line 3: Line 3:
 **Note**: If you do not have a CorteXlab account yet, please refer to the [[account | account ]] section first. **Note**: If you do not have a CorteXlab account yet, please refer to the [[account | account ]] section first.
  
-Currently access to CorteXlab is done via a direct ssh connection to the ''airlock''. This is SSH server whose sole purpose is to provide users with a UNIX home directory and several command line tools (CLI) to interact with the testbed. Whenever you see the ''airlock'' name appear in this wiki this is the SSH server we are talking about.+Currentlyaccess to CorteXlab is done via a direct ssh connection to the ''airlock''. This is an SSH server whose sole purpose is to provide users with a UNIX home directory and several command line tools (CLI) to interact with the testbed. Whenever you see the ''airlock'' name appear in this wiki this is the SSH server we are talking about.
  
-===== Closed beta ===== 
  
-CorteXlab is currently running in closed beta. The name of the platform's airlock is: ''gw.cortexlab.fr''.+The url (nameof the platform's airlock is: ''gw.cortexlab.fr''.
  
-===== Connecting using Linux/Unix ===== +===== Connecting using Linux/Unix/MacOS =====
- +
-==== Step 1: Connect to the host ====+
  
 On a Linux/Unix host, the SSH connection to the airlock can be done with the command:   On a Linux/Unix host, the SSH connection to the airlock can be done with the command:  
 <code> <code>
-you@yourpc:~$ ssh -X -v [-i path/to/the/key] -p 2269 username@gw.cortexlab.fr+you@yourpc:~$ ssh username@gw.cortexlab.fr
 </code> </code>
      
-Options:   +Additional options:   
- **-X** is used for X forwarding (do not forget to execute xhost+ on your own machine)  + **-X** is used for X forwarding (It's probably already running but you may need to execute xhost+ on your own machine)  
  **-v** is used for verbose mode    **-v** is used for verbose mode  
- **-p** is used to specify the port through which the SSH connection is opened   + **-p** is used to specify the port through which the SSH connection is opened (Default is 22, 2269 is possible)   
- **-i** is used to specify the path to the RSA key if it is not the default one (~/.ssh/id_rsa[.pub])   + **-i** is used to specify the path to the SSH RSA key if it is not the default one (~/.ssh/id_rsa[.pub])  
- +
-==== Step 2: Profit ==== +
- +
-You are using Linux, so that's about it.   +
-Now you can jump directly to the [last section](https://wiki.cortexlab.fr/doku.php?id=access&#once_connected) of this page.+
  
 ===== Connecting using Windows ===== ===== Connecting using Windows =====
  
-On MS Windowsyou can use [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|Putty]] to open SSH connections to remote hosts.   +On modern windows versions (10 and above)an openSSH implementations should be directly availablethus allowing the same connection method as with Linux and MacOS:
-Moreoveryou can enable X11 forwarding on Putty and user a X11 server on your PC to open remote graphical applications. [[http://sourceforge.net/projects/xming/|Xming]] is a suitable X11 server for Windows.   +
-To do so, you must configure your connection.+
  
-==== Step 1Set the Host ====+<code> 
 +you@yourpc:~$ ssh username@gw.cortexlab.fr 
 +</code>
  
-Choose SSH as the communication protocol and set the host name of the server you want to reachin this case the airlock ''dev.cortexlab.fr'', on port 2269.+If, for some reason it is not available, you will need to use an external programsuch as [[Putty|Putty]]
  
-{{ :win_ssh_putty1bis.png?nolink |}} 
- 
- 
-==== Step 2: Set the login username ==== 
- 
-Choose your login username in order not to re enter it every time you log in to CorteXlab. This is your CorteXlab account name (i.e. username). 
- 
-{{ :win_ssh_putty2.png?nolink |}} 
- 
- 
-==== Step 3: Set the SSH keys to use ==== 
- 
-Of course, the authentication on CorteXlab is based on RSA keys (no password authentication is allowed).   
-You have to give the path to the private key file (and your public key should be alongside it, i.e same directory and same file name prefix). 
- 
-{{ :win_ssh_putty3.png?nolink |}} 
- 
-More info on the key generation: [[ssh_key_help]] 
- 
-==== Step 4: Enable X11 forwarding ==== 
- 
-Enable X11 forwarding and specify the X display location. Usually, the X server is hosted on the same PC (i.e. "localhost") and the first display is used (i.e. display 0). 
- 
-{{ :win_ssh_putty5.png?nolink |}} 
- 
-==== Step 5: Start the X server ==== 
- 
-If the X server is not yet running, don't forget to start it. You can use the Xlaunch frontend of Xming to start the X server easily. Choosing multiple windows and display number 0, then proceeding with defaults in the 3 following screens should be enough for our use case. 
- 
-{{ :win_ssh_xlaunch1.png?nolink |}} 
- 
-|{{:win_ssh_xlaunch2.png?nolink&210|}}|{{:win_ssh_xlaunch3.png?nolink&210|}}|{{:win_ssh_xlaunch4.png?nolink&210|}}| 
- 
-==== Step 6: Save your Putty config ==== 
- 
-In order to be able to use in again in the future, don't forget to save the configuration in Putty. Just enter the desired session name (e.g. cortexlab) in the Saved Sessions field and click save. 
- 
-{{ ::win_ssh_putty4bis.png?nolink |}} 
- 
-==== Step 7: Log in through SSH ==== 
- 
-Just click the "open" button, no pics included this time ;) 
- 
-===== Connecting using MacOS ===== 
-To be done. 
  
 ====== Once connected ====== ====== Once connected ======
Line 97: Line 44:
 Use ''scp'' but be aware that the port option for ''scp'' is ''-P'' (not ''-p'' as in ''ssh'') Use ''scp'' but be aware that the port option for ''scp'' is ''-P'' (not ''-p'' as in ''ssh'')
 <code> <code>
-you@yourpc:~$ scp -P 2269 [-i path/to/the/key] yourLocalFile username@gw.cortexlab.fr:distantFilePath+you@yourpc:~$ scp [-P PORT] [-i path/to/the/key] yourLocalFile username@gw.cortexlab.fr:distantFilePath
 </code> </code>
      
- 
access.1465484076.txt.gz · Last modified: 2016/06/09 16:54 by trisset

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki