Difference between revisions of "SSH/SFTP"

From radwiki
Jump to navigation Jump to search
m (1 revision imported)
Line 3: Line 3:
 
[https://en.wikipedia.org/wiki/Secure_Shell SSH] allows commandline access to the connected server.  
 
[https://en.wikipedia.org/wiki/Secure_Shell SSH] allows commandline access to the connected server.  
  
[https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol SFTP] allows file transfers. Store any data you want in your home directory. Currently there is no storage capacity limiter.
+
[https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol SFTP] allows file transfers. They normally also include an SSH terminal feature.
 +
 
 +
In addition, remote desktop solutions such as VNC or X forwarding typically depend on shell (SSH tunnel) access.
 +
{Note| X forwarding sends a single application window, typically without compression or network optimization. VNC sends the entire desktop and is optimized for networked usage, such as persisting after an accidental disconnect. The former uses the default port range 6000+N, the latter 5900+N.}
 +
 
 +
To connect with SSH or SFTP, you need to use a client program.  
  
To connect with SSH or SFTP, you need to use a client program.
 
  
 
== Windows Clients ==
 
== Windows Clients ==
* Modern powershell or PuTTy are some of the clients available for SSH
+
* Modern powershell or PuTTy are some of the many clients available for SSH
* WinSCP or Filezilla are typical SFTP clients.
+
* WinSCP or Filezilla are typical SFTP clients.  
 +
* realVNC is a known VNC client
 +
* Xming is a known X server/client
  
 
Input your [[user account|user ID]], password and server IP address as appropriate.
 
Input your [[user account|user ID]], password and server IP address as appropriate.

Revision as of 10:15, 20 May 2020

Shell access is arguably the most important feature of the GPU cluster, as it allows researchers to run their code, e.g. using the anaconda environment.

SSH allows commandline access to the connected server.

SFTP allows file transfers. They normally also include an SSH terminal feature.

In addition, remote desktop solutions such as VNC or X forwarding typically depend on shell (SSH tunnel) access. {Note| X forwarding sends a single application window, typically without compression or network optimization. VNC sends the entire desktop and is optimized for networked usage, such as persisting after an accidental disconnect. The former uses the default port range 6000+N, the latter 5900+N.}

To connect with SSH or SFTP, you need to use a client program.


Windows Clients

  • Modern powershell or PuTTy are some of the many clients available for SSH
  • WinSCP or Filezilla are typical SFTP clients.
  • realVNC is a known VNC client
  • Xming is a known X server/client

Input your user ID, password and server IP address as appropriate.

SSH Port forwarding or tunnelling

SSH can improve security. If a HTTP connection is too insecure, and you are not on a VPN, consider using SSH to connect to the GitLab or MediaWiki services. In simple terms, your application (e.g. browser, git client) talks to a localhost port instead of an external address/port, the SSH connection then transparently forwards that data.

The syntax in powershell or bash is: ssh -L local_port:remote_address:remote_port username@server.com You can then leave that tunnel open in the background, traffic targeting localport will move through it. This will be the recommended method to connecting with Jupyter Notebooks once the firewalls are hardened.

See also