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/12/12 10:37] – [Step 6: Save your Putty config] onicolasaccess [2018/10/24 11:57] (current) – [If you need to copy files from your PC to CorteXlab] lcardoso
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 37: Line 36:
 ==== 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 ''gw.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_putty1bis.png?nolink |}} {{ :win_ssh_putty1bis.png?nolink |}}
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 97: Line 111:
 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.1481535426.txt.gz · Last modified: 2016/12/12 10:37 by onicolas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki