Remote Login, File Transfer, and Remote Handin
This page shows one way of
- remotely logging in to the CADE Lab machines,
- transferring files to and from the CADE Lab machines, and
- remotely handing in your homework solutions
all sitting at home without having to go to the CADE Lab if you have a
Windows machine connected to the Internet (e.g., via DSL). You can
make a Linux machine or a Mac machine work this way too, but this page
does not cover those machines.
There is no room for creativity here;
please follow the directions carefully.
1. Download a SFTP client first
Go to this page to read
about some general information on transferring files to the CADE Lab,
and come back to this page to follow the step by step instructions.
You might want to open another browser window so that you can move
back and forth between that page and this page.
Do the following:
- Go to the section entitled "[1] FTP and SFTP at the CADE" on that
page.
- Click on "PuTTY SFTP".
- Go to "Windows 95, 98, ME, NT, 2000, and XP on Intel x86"
under "Binaries". (If your machine is not one of these,
then this page does not help. Go back to the general
information page and figure it out yourself. However, this page
may still give you an idea.)
- Download 'putty.exe' to a known directory on your
machine. (Keep that file in a handy place because you will use
it every time you want to connect to a remote machine like the
ones in the CADE Lab.)
Now, you have downloaded a program that will let you connect to a
machine in the CADE Lab. (Yes, you can use it to connect to other
computers elsewhere, but I am not concerned about that now.)
Also read the "LEGAL WARNING" too.
You only have to download "putty.exe" once and use it
repeatedly.
Continue on to Section 2 below.
2. Remotely logging in to a CADE Lab machine using PuTTY
- Download 'putty.exe' as described in Section 1 above.
- Click (or double-click if clicking once is not enough) on
'putty.exe'.
- Type in a host name. 'lab3-5.eng.utah.edu' is one that
would work.
- Click on 'SSH'. Default is set to 'Telnet', but 'SSH' is
safer.
- Leave the 'Saved Sessions' blank.
- Leave it 'Only on clean exit'.
- Click on 'Open'.
- Type in your usual 'user name' that you use when you log in to the
CADE Lab machines to 'login as:'
- Enter your password.
- Now, you are logged in. Try a simple command like 'ls'
to verify that you are connected for sure.
3. Handing in your problem set remotely
- If you need to transfer your file first from your home computer
to the CADE Lab, then do Sections 4 and 5 below first.
- Log in to a CADE Lab machine as described in Section 2 above.
- Assuming that 'ps1.scm' is the file that you want to
hand in and also assuming that the file resides in the
CADE Lab machine, you can hand it in using the following:
Unix> handin cs2010 ps1 ps1.scm
Remember, you are issuing this command on a remote machine (in
the CADE Lab) sitting at your home computer.
4. Setting up a remote password
You will have to set up a remote password in the CADE Lab machine
first if you want to transfer files using FTP. You only need to to
this once unless you need to reset or change the password.
Type in 'remote_passwd' to the Unix prompt to set your remote
password as follows:
Unix> remote_passwd
You may use the same password that you use when you log in to the CADE
Lab machines, but I feel safer to use a different one.
5. Transferring your files to CADE Lab using FTP
- Set up your remote password as described in Section 4 above.
- Follow "Start" (lower-left corner of your Windows screen),
"Run", and "cmd" on your Windows machine to activate a DOS
window.
- Using the 'cd' command, go to the directory where the
file (e.g., ps1.scm) that you want to transfer is
located (e.g., C:\cs2010\ps1\). You will also find the
'dir' command useful to see what is included in each
directory as you move up and down the directory structure. You
move down using a subdirectory name and you move up by 'cd
..' (Yes, use two dots).
- Now use FTP (File Transfer Protocol) or SFTP (Secure FTP) to
transfer the file as follows (We will use FTP here):
- Issue the ftp command as follows followed by the 'Enter' key:
DOS_Prompt> ftp ftp.eng.utah.edu
Yes, 'ftp.eng.utah.edu' is the name of a machine in
the CADE Lab that handles all the FTP requests.
- Type in your CADE Lab account user name. This would be 'alee'
for me.
- Type in your password. This is the remote password that you
set up in Section 2 above.
- By now, you will see an ftp prompt (i.e., 'ftp>'). Issue the
'bin' command to tell the ftp software that you want
to transfer your files in a binary mode as follows:
ftp> bin
- Now you are ready to send your file. Issue the
'put' command to put a file from your home machine to
the one in the CADE Lab as follows:
ftp> put ps1.scm
if 'ps1.scm' is the name of the file that you want to
transfer. You can even check to see if the file transfer was
successfully done or not with the following command:
ftp> ls -l
It will show all the files (with size information in number of
bytes) including the one that you just transferred. (If you
want to 'get' one rather than 'put' one, use
the 'get' command with the name of a file that resides
in the CADE Lab machine.) If you want to put more files, issue
the put command as many times as you want.
- You have successfully transferred a file from your machine to
the one in the CADE Lab. If you want to transfer more files,
just issue the 'put' command once for each file that
you want to transfer. By now you might be wondering how all
the machines in the CADE Lab share the files among them. Well,
the CADE Lab machines including 'ftp.eng.utah.edu' and
'lab3-5.eng.utah.edu' are all sharing the same file
system, meaning they all see the same files from each
machine.
- When you are done, quit out of ftp with the command
'quit'.
6. Read more about what is available in the CADE Lab
So far, I showed you the minimum that you need to know if you want to
do your homework using your machine at home, transfer the file to
a CADE Lab machine, and hand it in so that we can grade your homework.
The CADE Lab home page has more information on
transferring files to the CADE
Lab and other general
information about the CADE Lab. Check them out some time.