User Tools

Site Tools


other:ssh

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
other:ssh [2020/07/10 07:51]
jypeter Improved the mentions of Putty
other:ssh [2020/08/04 07:54]
jypeter Updated the links for PuTTY
Line 29: Line 29:
 Note: the following will work in a **Linux** terminal, but can also work in a //​terminal//​ on a **Mac** or on a **Windows 10** computer (''​ssh''​ is directly available in ''​Windows Powershell'',​ ''​Windows Terminal''​ or the old ''​cmd'',​ but it is not the most user-friendly way to use ''​ssh''​ on Windows) Note: the following will work in a **Linux** terminal, but can also work in a //​terminal//​ on a **Mac** or on a **Windows 10** computer (''​ssh''​ is directly available in ''​Windows Powershell'',​ ''​Windows Terminal''​ or the old ''​cmd'',​ but it is not the most user-friendly way to use ''​ssh''​ on Windows)
  
-If you have a Windows computer, it is much easier to use [[#​a_recommended_ssh_client_for_windows|Putty]] for creating an ''​ssh''​ connection+If you have a Windows computer, it is much easier to use [[other:​putty_conf|PuTTY]] for creating an ''​ssh''​ connection
  
 </​WRAP>​ </​WRAP>​
Line 43: Line 43:
  
   * Most common options:   * Most common options:
-    * ''​-X'':​ Enable X11 forwarding. This option will allow you to start graphical programs on the remote server+    * ''​-X'':​ Enable ​//X11 forwarding//. This option will allow you to start graphical programs on the remote server
       * If ''​-X''​ does not work, use ''​-Y''​ instead (Enable //trusted// X11 forwarding)       * If ''​-X''​ does not work, use ''​-Y''​ instead (Enable //trusted// X11 forwarding)
       * Using the ''​-X''/''​-Y''​ option will automatically define the ''​DISPLAY''​ environment variable that is required by graphical programs on the remote server. Otherwise, ''​DISPLAY''​ will not be defined\\ <​code>​my_login@lsce5203:​~$ echo $DISPLAY       * Using the ''​-X''/''​-Y''​ option will automatically define the ''​DISPLAY''​ environment variable that is required by graphical programs on the remote server. Otherwise, ''​DISPLAY''​ will not be defined\\ <​code>​my_login@lsce5203:​~$ echo $DISPLAY
Line 60: Line 60:
         * Windows: [[other:​win10wsl#​installing_an_x_server|install,​ configure and launch VcXsrv]]         * Windows: [[other:​win10wsl#​installing_an_x_server|install,​ configure and launch VcXsrv]]
         * Mac: FIXME         * Mac: FIXME
-    * ''​-A'':​ enable agent forwarding. This is useful when you use //ssh keys//, and an //ssh agent//+    * ''​-A'':​ enable ​//agent forwarding//. This is useful when you use //ssh keys//, and an //ssh agent//
     * ''​-t command'':​ this option allows you to execute a command on the remote server (without displaying the output of the initial ''​ssh''​). We use this mostly to //chain ssh connections//,​ when we want to automatically go through a specific //gateway// server to access another server\\ e.g. ''​ssh -A -X my_login@ssh1.lsce.ipsl.fr -t ssh -A -X obelix''​     * ''​-t command'':​ this option allows you to execute a command on the remote server (without displaying the output of the initial ''​ssh''​). We use this mostly to //chain ssh connections//,​ when we want to automatically go through a specific //gateway// server to access another server\\ e.g. ''​ssh -A -X my_login@ssh1.lsce.ipsl.fr -t ssh -A -X obelix''​
     * ''​-v'':​ verbose mode. Use this option only when you can't connect, or things don't seem to work correctly. Analyzing the verbose output when you start ''​ssh''​ should allow you, or the [[other:​newppl:​starting#​getting_help_from_the_lsce_system_administrators|system administrators]],​ to find out what is wrong     * ''​-v'':​ verbose mode. Use this option only when you can't connect, or things don't seem to work correctly. Analyzing the verbose output when you start ''​ssh''​ should allow you, or the [[other:​newppl:​starting#​getting_help_from_the_lsce_system_administrators|system administrators]],​ to find out what is wrong
Line 91: Line 91:
 ==== A recommended ssh client for Windows ==== ==== A recommended ssh client for Windows ====
  
-[[other:win10apps#​putty_pageant|Putty]] is a convenient and user-friendly //ssh client// for Windows+[[other:putty_conf|PuTTY]] is a convenient and user-friendly //ssh client// for Windows
  
 ===== Just transferring files ===== ===== Just transferring files =====
other/ssh.txt · Last modified: 2023/05/03 08:32 by jypeter