How to submit a program from outside the CS lab for a CS class
This tutorial will explain how to submit a program for a CS class from outside of the Computer Science labs. You will need to download FileZilla and PuTTY.
Send the file to your directory with SFTP
First, use SFTP (in this case, SFTP stands for SSH file transfer protocol and SSH stands for the secure shell protocol) to transfer your folder containing the homework over to a folder under your directory (/home/major/). You might want to use the workspace folder that you probably created while working on our first assignment.
1. After downloading and installing FileZilla, open it.
2. Go to File -> Site Manager
3. Click the New Site button and create a name (for example, MTU CS lab)
4. In the General tab, the host should be: wopr.csl.mtu.edu. You can leave the port blank because the default value should work.
5. Click the drop down menu Servertype and set it to SFTP ' SSH File Transfer Protocol
6. Click the Logontype drop down and choose Normal
7. Type your regular username in the User textbox and your ISO password in the Password textbox
8. Go to the Advanced tab and change the Servertype to Unix
9. Check your settings vs the pictures and make sure they are correct, then click Connect
10. When it connects, find the directory above the folder of your program on your computer (the local site)
11. Expand your username and select the folder on the remote computer you wish to send your homework to
12. Right-click your homework folder (Hw2 in this case) and click Upload
13. Make sure that your folder is now listed under the folder on the remote site
14. Close FileZilla
Use SSH to submit your programs
1. After downloading PuTTY, run it (it doesn't install)
2. Put wopr.csl.mtu.edu as the Host and leave 22 as the port number
3. Make sure that SSH is selected
4. Click the Open button
5. Type your username and press Enter
6. Type your password and press Enter
7. Change to the directory of your homework. Use cd to change folders (ex cd /Home changes to the Home directory) Use cd .. to change to one directory 'higher' than you are currently in, cd ./folder to change to a folder named 'folder' from within the current directory, and dir to list the contents of the directory. If you put yours under /home/major/workspace do the following:
a. Type cd ./workspace/<foldername> where foldername is the name of the folder with your .JAVA files for example cd ./workspace/Hw2, and press Enter
b. Type submit and press Enter
c. Select your class with the arrow keys and press Enter
d. Choose the section and press Enter
e. Choose the assignment and press Enter
f. Find your .JAVA files and select one at a time and press the spacebar to mark them to be submitted
g. Press Enter when you are done selecting your files
h. Check over the list to make sure that every file is listed then type y to continue
i. Press Enter to continue
j. If you are done, type q to quit
k. At the prompt, type exit to close the terminal. Make sure you don't leave it open.