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 [2014/06/17 09:50] – [Accessing CorteXlab] bguillonaccess [2018/10/24 11:57] (current) – [If you need to copy files from your PC to CorteXlab] lcardoso
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 ===== ===== Closed beta =====
Line 15: Line 15:
 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 -X -v [-i path/to/the/key] [-p PORT] username@gw.cortexlab.fr
 </code> </code>
      
 Options:   Options:  
  **-X** is used for X forwarding (do not forget to execute xhost+ on your own machine)    **-X** is used for X forwarding (do not forget 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 (22 or 2269) 
  **-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 RSA key if it is not the default one (~/.ssh/id_rsa[.pub])  
- 
 ==== Step 2: Profit ==== ==== Step 2: Profit ====
  
Line 32: Line 31:
  
 On MS Windows, you can use [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|Putty]] to open SSH connections to remote hosts.   On MS Windows, you can use [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|Putty]] to open SSH connections to remote hosts.  
-Moreover, you 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.  +Moreover, you can enable X11 forwarding on Putty and use 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. To do so, you must configure your connection.
  
 ==== Step 1: Set the Host ==== ==== Step 1: Set the Host ====
  
-Choose SSH as the communication protocol and set the host name of the server you want to reach, in this case the airlock ''dev.cortexlab.fr'', on port 2269.+Choose SSH as the communication protocol and set the host name of the server you want to reach, in this case the airlock ''gw.cortexlab.fr'', on port 22 or 2269 (as pictured bellow).
  
-{{ :win_ssh_putty1.png?nolink |}}+{{ :win_ssh_putty1bis.png?nolink |}}
  
  
Line 74: Line 73:
 ==== Step 6: Save your Putty config ==== ==== 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.+In order to be able to use it 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_putty4.png?nolink |}}+{{ ::win_ssh_putty4bis.png?nolink |}}
  
 ==== Step 7: Log in through SSH ==== ==== Step 7: Log in through SSH ====
Line 83: Line 82:
  
 ===== Connecting using MacOS ===== ===== Connecting using MacOS =====
-To be done.+ 
 +The MacOS procedure for connecting is very similar to the Linux/Unix one, the SSH connection to the airlock can be done with the command: 
 +   
 +<code> 
 +you@yourpc:~$ ssh -X -v [-i path/to/the/key] [-p PORT] username@gw.cortexlab.fr 
 +</code> 
 +   
 +Options:   
 + **-X** is used for X forwarding (do not forget to execute xhost+ on your own machine)   
 + **-v** is used for verbose mode   
 + **-p** is used to specify the port through which the SSH connection is opened (22 or 2269)  
 + **-i** is used to specify the path to the RSA key if it is not the default one (~/.ssh/id_rsa[.pub])   
 + 
 +==== Step 2: Enjoy ==== 
 + 
 +That's about it.
  
 ====== Once connected ====== ====== Once connected ======
Line 92: Line 106:
  
 {{ ::win_ssh_term1.png?nolink |}} {{ ::win_ssh_term1.png?nolink |}}
 +
 +
 +====== If you need to copy files from your PC to CorteXlab ======
 +Use ''scp'' but be aware that the port option for ''scp'' is ''-P'' (not ''-p'' as in ''ssh'')
 +<code>
 +you@yourpc:~$ scp [-P PORT] [-i path/to/the/key] yourLocalFile username@gw.cortexlab.fr:distantFilePath
 +</code>
 +  
access.1402991415.txt.gz · Last modified: 2014/06/17 09:50 by bguillon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki