CSE 130 - SSH and Your PC
CSE 130
Using your Personal Computer
1. C Compiler:
If you prefer, you may use your PC to do programming assignments. For
this, you need to install a C compiler on your PC. The following ins-
tructions are for a C++ compiler. But do not use any C++ features.
Remember C is a subset of C++, and you will be able to use this for
your C programs.
a. Connect to: http://sourceforge.net/projects/dev-cpp/
b. Click on the "Download Dev-C++" icon.
c. Scroll down and click on "devcpp-4.9.9.2_setup.exe",
select a mirror and download it.
2. Saving your program with indentation:
After you are done with assignment, DO NOT save the file in "text
mode" or "ascii mode". This is because you want to retain whatever
indentation you have in your program. If you use notepad or wordpad
for creating your C program then your indentation will be retained
if your file name has a .c extension.
Then connect to sparky using your PC. You may use Telnet, FTP or SSH
(Secure Shell) for this purpose. Note that Telnet and FTP connections
are not secured/protected. Follow steps given below and transfer your
program to sparky account.
After you are connected to sparky transfer some file from sparky to
your PC, edit it on the PC and save. Send the modified version back
to sparky and view the changes. Do this just as a practice exercise.
3. SSH Client Download:
The SSH Secure Shell Client is the desktop client, which you use to
connect to sparky from a SINC site. It can also be installed on your
PC.
First connect to the softweb website (http://softweb.cc.sunysb.edu)
- A login window will pop up, where you login using your NetID.
- Once inside click on the Email and Telnet picture and then select
"SSH 2.2.0".
- Click the link "SSH Win 3.2.9 Client" to download the installer,
SSH Win 3.2.9 Client, Installation Instructions, and the License
file.
- Click on the downloaded file to install it, and follow the ins-
tallation instructions.
4. File Transfer Using SSH Client.
To connect to sparky click on the SSH Client icon on your desktop, and
click on `Quick Connect'. Here for the host name enter
`sparky.ic.sunysb.edu'. Once you are connected to sparky using the
SSH Client, you can use it to transfer files between your PC and
sparky. This way you can have a local/home copy of all the work that
you do on sparky.
To transfer files:
a. Click the small yellow icon on the toolbar of the Secure Shell
Client program. This button will launch the Secure File Transfer
Client, and connect to whatever server you are already connected to.
b. In the drop down, click on `New File Transfer'. This will open a
new window. This window has two columns, one with `Local Name'
showing your local machine files, and the other with `Remote
Name' showing the files on sparky.
c. To transfer a file from your PC to sparky, right click on the
file in the left column and click on `Upload'.
d. To transfer a file from sparky to your PC, right click on the
file in the right column and click on `Download'.