Body
HWS offers Linux lab computers for many Computer Science and Math courses. When using these computers, your home directory and the classes directory are universally accessible on all of the lab computers. However, there are times where you may need to copy files to the lab environment, or retrieve files from it when using a non-HWS computer. This article explains how to do that.
There is a server that you can connect to which is also connected to the home and classes directories. Via this server you can SSH (interactively run terminal commands) and SCP (copy files).
SSH from a Windows Computer
To SSH from a windows computer, you will need an SSH client, such as Putty.
To Download and Install Putty:
- In a web browser, navigate to the Putty download page
- Under package files, click on the correct installer for your system (If you are unsure, then select 64-bit x86)
- Find the downloaded file and install the application
To SSH to the server using Putty:
- Open the Putty application on your computer
- In the Host Name Field, enter csmath-terminal.hws.edu
- Click Open
- If you receive a Key notification, click Accept
- At the login as prompt, enter your HWS user name and press enter
- At the Password prompt, enter your HWS Password and press enter
- When you are done, you can log off the SSH session by typing exit and pressing enter
To SSH From a MacOS or Linux Computer
- Open the Terminal application
- Enter the command ssh username@csmath-terminal.hws.edu. Replace "username" with your HWS user name
Example: ssh ab1234@csmath-terminal.hws.edu
- If you receive a key notification, type yes and press enter
- At the password prompt, enter your HWS password and press enter
- When you are finished, log off by typing exit and pressing enter
To SCP from a Windows Computer
To SCP from a Windows computer, you will need to use a client, such as WinSCP.
To Download and Install WinSCP:
- In a web browser navigate to the WinSCP download page
- Click the download WinSCP link
- Find the downloaded file and install the application
To Transfer Files using WinSCP:
- Open the WinSCP application
- In the Host name field enter csmath-terminal.hws.edu. In the user name field, enter your HWS User name. In the Password field, enter you HWS password
- Click login
- If you receive a key warning, click yes.
- When WinSCP connects, you will be presented with the file systems of your computer (left), and the server (right). You can drag and drop files to copy them between the two.
To navigate to the /classes directory, you can use the up arrow to go up levels in the directory tree.
- When you are done, you can close the application and click Yes at the prompt
SCP from a MacOS or Linux Computer
You can SCP individual files or folders using a single command.
- Open the terminal application
- The structure of the SCP copy command is: scp <source file> <destination directory>
Whether the HWS Linux environment is the source or destination, it must be formatted as: username@csmath-terminal.hws.edu:/path/to/file
Example of copying a file from your computer to the HWS Linux environment
scp /home/username/file.txt ab1234@csmath-terminal.hws.edu:/home/ab1234/Desktop
Example of copying a file from the HWS Linux environment to your computer
scp ab1234@csmath-terminal.hws.edu:/home/ab1234/Desktop/file.txt /home/username/
- If you receive a key notification, type yes and press enter