This tutorial will show you how to use a remote server.

Installation

XShell is a powerful SSH client which allows you to easily create, edit, and launch multiple sessions simultaneously. Xftp is a file management software. You can drag and drop files between remote hosts and see transfer progress in real time. Manage queues and designate rules to take the hassle out of remote transfers.

Download XShell and Xftp from the website: XShell Download, Xftp Download

Connect to the Remote Server

After installation, click "File" -> "New..."

On the left hand side, choose "Connection" -> "SSH" -> "Tunneling"

Then on the right side, fill out the "Host" and the "Port Number", then click "Connect".

The server might require a user name and password, just fill in both of them in the pop-out window.

connect

Transfer files

Open Xftp, click the button on the left top to start a connection. Enter the "Host" and the "Port Number", then click "Connect".

Xftp1

Enter the user name and password.

Xftp2

Once connected, you can see the screen is divided into two parts. Left hand side is your own laptop, and the other half is the server computer. You can now transfer files.

Xftp3

Just find the file that you want to transfer and click it with the right button of your mouse. And choose Transfer. Note that the file will be transferred to the exact folder which is shown in the right hand part of the window. You can see the transmission progress in the Transfers window below.

Xftp4

Useful Commands

The server installs python2.7, python3.6, cuda9.0, cuDNN7.0.

  • cd: Change directory
  • To check cudnn version number: cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
  • To query GPU device state: nvidia-smi
  • If you want to kill an on-going process running on gpu: sudo kill -9 PID (PID can be seen using nvidia-smi. Kill a process may require user's password.)
  • Tab button: Press the tab button if you can only remember part of a command. This will automatically complete the command.
  • To run a python file: python filename.py
  • To Abort a process: Ctrl+Z

More commands can be found at: Ubuntu commands.