Using TTSSH to set up a secure ftp connection to Duke Statistics
Before you begin
The following discussion presupposes that you are using ttssh version 1.4 or greater. This can be verified by selecting About ttssh under the Help menu. If you are using an earlier version, you should upgrade to the latest (1.4 as of the writing of this document).
Here are some setup tips taken from the ttssh homepage.
- For Windows® 95, add the following lines to
C:\Autoexec.bat
REM [MAKE SURE WE USE TTSSH] set TERATERM_EXTENSIONS=1 REM [MAKE SURE C:\Program Files\Ttermpro is in path] set PATH=C:\WINOWS;C:\WINDOWS\COMMANDS;C:\PROGRA~1\TTERMPRO
(Be extremely careful with this if your PATH variable is already being set in Autoexec.bat, append theC:\PROGRA~1\TTERMPRO
to your existing PATH statement ) - For Windows® NT, the
TERATERM_EXTENSIONS
environment variable should be created and set to 1 under the System control panel.
Setting up port forwarding
The following instructions describe each of the two ways of setting up port
forwarding:
1) from the Setup menu or 2) via the command line. In both cases,
isdsmachine
should be set to then name
of the Duke Statistics machine with which you want to transfer files.
- From within the Setup / SSH Forwarding... menu:
For ftp (control):
- select Add...
- set Forward local port to
ftp
(either type in or select from pulldown menu) - set to remote host to
isdsmachine
- set port to
ftp
- select OK
Now, for ftp-data:
- select Add... again
- set Forward local port to
ftp-data
- set to remote host to
isdsmachine
- set port to
ftp-data
- select OK
Now, save the current setup under Setup / Save setup... :
- save this setup as
isdsftp.ini
(this ini file may be invoked at any time from within the Setup / Restore setup... menu).
Tip: Make a shortcut on your desktop to
"C:\Program Files\Ttermpro\ttssh.exe" /F=isdsftp.ini
- From within a DOS prompt window or Win+R dialog, run:
ttssh.exe /ssh-L/21:isdsmachine:21 /ssh-L/20:isdsmachine:20 isdsmachine
Tip: Make a shortcut on your desktop to perform this command.
Setting up ftp client to transfer files
Using your favorite ftp client (that is capable of passive ftp), connect
to localhost
(localhost is a literal string, where you see it,
type in the word localhost) and you should be in
business.
- For Netscape, open a connection CTRL+O, and enter
ftp://username@localhost/
whereusername
is your Duke Statistics login.- You will either need to click your way to your home directory, or
use the following,
ftp://username@localhost/path/to/home/directory
For example, if your Duke Statistics login isjimbo
home directory was/usr/home/jimbo
ftp://jimbo@localhost/usr/home/jimbo
- Downloads: Click on the file
- Uploads: Under the File menu, select upload file
- WARNING: Do not have Navigator save your password. At least one user has reported a problem with this resulting in a bad prefences file that "blows away" all of your settings. caveat emptor!
- You will either need to click your way to your home directory, or
use the following,
- For WS_FTP, select New profile:
- set Profile Name to
Duke Statistics_FTP
- set Host Name/Address to
localhost
- set User Id to your Duke Statistics userid (login name, e.g.
jimbo
) - under the Advanced tab, select Passive Transfers.
- click Apply and OK (just in case)
- set Profile Name to