CSCI165
SSH User
Manual
Last updated: Saturday 15th November 2008, 15:53 PT, AHD
Introduction
SSH allows
secure file transfer from any computer on the
Internet to
a remote web server. If the SSH software is not installed on your home
computer, follow the installation instructions here.
Instructions
for use
1. Create a
test file
You first need to create a test PHP file for testing
the file transfer:
Using a text editor such as notepad, create a file called 01-01.php
which contains the following text:
<!-- 01-01.php -->
<body>
// this is a PHP comment
// the following line is a PHP
statement:
echo "Hello CSCI165 Class!";
?>
</html>
The rest of this document assumes the 01-01.php file is saved in the C:\temp
folder:
C:\temp\01-01.php
2. Start
the SSH program
If you followed the installation
instructions, and accepted all the defaults and set up a user profile when you
installed SSH, you can start the SSH program by clicking on the Start button on
your desktop, as follows:
Start -> All Programs -> SSH Secure Shell ->
Secure File Transfer Client
You will then see the running SSH program window as
follows:

In the screen above, the left SSH window shows the
list of your local folders and files. You can navigate by clicking on the
folders in this window.
In the screen above, the right SSH window is used to
display your files in your folder on the remote server. If you're not connected
to the server, this right window will be grey and empty, as shown above.
3. Connect
to the remote server
To connect to your folder on the remote server, click
on the Profiles button and then on your username - in this example the
user is student1. (You have your own user name, as explained here.)

You will see the following window:

Click on the Yes button to see the following
screen.

Enter the password exactly as given to you by your
instructor. The password is all lower case.
You will then see the following screen:

If you see in the screen above, in the right hand
window, the file name CSCI165A.txt - you are now connected to your folder on
the remote server. There is only one file in your folder on the remote server -
CSCI165A.txt.
This remainder of this document explains how to upload the file
C:\temp\01-01.php
4. Upload
your file to the server
Click on My Computer in the left hand window and
navigate to C:\temp...

Once you’ve located your PHP file in the left window,
drag it to the Remote (right) window.
IMPORTANT: Upload the file only. Do not upload the file in a
folder. Do not upload any folders, or create any folders on the server. Your
folder already exists on the server, and what you see in the right hand, is the
contents of your folder.
When you can see the PHP file in the right hand window, it now exists in
your folder on the server.
5. Run
01-01.php on the server
You can execute the php file by putting in the full path in Firefox's
address bar:
http://96.48.39.33/student1/01-01.php
Assuming you are the student with user name student1 and have uploaded the 01-01.php file to the web server, you can access it in
the Firefox Internet browser (from anywhere) using this address:
http://96.48.39.33/student1/01-01.php
Make sure you use the Firefox browser!
You will get strange results if you use Internet Explorer. You have been
warned!