Assignment 00b
SSH, SCP, Autograder

SSH, SCP, Autograder

This assignment will introduce more tools: ssh, scp, and the Autograder.

ssh or secure shell is a method for connecting from one computer to another over an encrypted channel.

SSH

In Linux and MacOS, the syntax for connecting to the machine called silo.sice.indiana.edu is:

ssh yourusername@silo.sice.indiana.edu

In Windows, you can use PuTTY to accomplish the same task. Download PuTTY from here, enter the name of the host (silo.sice.indiana.edu) and select SSH in the choices of protocol. See the PuTTY documentation on SSH for more detail.

You can send more than just text over ssh, using a technology called X11, which is similar to remote desktop or desktop sharing applications, except typically X11 only sends one application at a time (not the whole desktop). That can be useful for using a graphical program on a remote machine.

SCP

For our purposes, the only other thing we might need in addition to ssh is the ability to move files from the remote machine to the local machine (or from local to remote). A program for that is called scp.

Here is how it works on MacOS and Linux:

# copy a file from my local machine's home directory to the home directory on silo:
scp ~/thisfile.txt ashroyer@silo.sice.indiana.edu:~/thisfile.txt

# copy a file from silo to my home directory, renaming it to "thisfile.txt" at the same time:
scp ashroyer@silo.sice.indiana.edu:~/thatfile.txt ~/thisfile.txt

# copy an entire folder from the remote:
scp -r ashroyer@silo.sice.indiana.edu:/tmp/somefolder ~/my_local_copy_of_somefolder

For more examples, see the user manual (man scp on MacOS or Linux) or the tldr page.

On Windows, you can use WinSCP (link) which has the same functionality plus a graphical interface.

Autograder

Visit autograder.sice.indiana.edu from an IU-networked computer (or use a VPN to get on the IU network) and find the link for Engr110 S19.