SCP:
'scp' stands for secure copy and is a companion program to ssh for
transferring files. However, the PC version of ssh that we have made
available for download doesn't include scp. Until now, users have had
to set up port forwarding on ssh in combination with ftp to transfer
files. This procedure is cumbersome at best. 'scp' copies files
directly and securely, so you might prefer this method. In addition,
you might already be used to using scp on UNIX and Linux computers.
AUGUST 30, 2002 UPDATE
As of August 30, 2002, the latest version of ssh for Windows now has
the 2 window version of ftp the way WS_FTP does it. The ftp site is at
ftp://ftp.ssh.com/pub/ssh/
and the current version is SSHSecureShellClient-3.2.0.exe. This
program is believed by some to be far superior to those listed below.
WINDOWS GUI VERSION
This version, called WinSCP, was recently found (April 2001), so beware of
bugs and other issues. However, so far it is has been very easy to use
and is the recommended method for performing ftp functions using Windows.
WinSCP has been shown to work on Windows 98 and Windows 2000 systems. It
was developed by a Czech named
Martin Prikryl.
More information about WinSCP, including perhaps a more updated
version, can be found on its homepage:
http://winscp.vse.cz/eng/
Download:
The files call be downloaded directly here: (Version 1.0 Build 215)
WinSCP-install.exe, a complete
Windows-type install package.
WinSCP.exe, for those of you who are happy to do
the install directly. There is only this one file in the install
package.
Instructions:
When you start the executable, the login interface is extremely
straightforward. Type in the name of the server (probably
'sun-valley.stanford.edu'), your username and your password. You can
leave the port setting at the default.
Click 'OK' when the warning comes up.
Don't be worried if it takes a second for the window to come up.
To move files, navigate so that the proper directories are shown on each
system. Click on the file you want to move, then click on the Copy or
Move button below. That's it!!
COMMAND LINE VERSION
PC users beware: this version of ssh and scp are DOS based programs,
so they are used and installed like their UNIX counterparts, not like
typical GUI-based Windows programs.
Source:
The Windows version of scp shows up at various places on the web, but
it all looks like the same port of ssh and scp from UNIX source code.
Here are some of these locations:
Download:
You can download a zip file (
ssh-1_2_14-win32bin.zip ) here. You might find a more up-to-date
version at the sites listed above.
Instructions:
I think the instructions can be simpler than in the other references.
The procedure here is all that I had to do:
- Create a directory c:/ssh/bin and extract the zip file into this
directory. The following files should appear:
- ssh.exe
- scp.exe
- ssh-keygen.exe
- zlib.dll
- gmp.dll
- Delete ssh-keygen.exe because it doesn't work and you won't need
it.
- Add these lines to your autoexec.bat file:
- set HOME=c:
- set PATH=c:\ssh\bin;%PATH%
The autoexec.bat file should be in your c:\ directory.
- Reboot Windows.
- Open up a DOS Window to type in your commands ssh and scp
commands. You can also select 'Run' from the Start menu, create
shortcuts, etc.
- The ssh and scp commands work like their counterparts on UNIX.
Learn to use them on UNIX first, where you have the man pages
available.
- Example commands:
- ssh -l peter alta.stanford.edu
- scp myfile.ext huster@alta.stanford.edu:~/
- scp huster@alta.stanford.edu:~/papers/thesis.ps .
- Note that because Windows has no concept of usernames, it can't
add default usernames to commands. Therefore, every command needs to
include the username on the UNIX side.
- These commands are useful for connection to the ARL UNIX hosts,
other Stanford hosts like the elaine's, etc., and any other
self-respecting UNIX system that you might encounter. Of course, you
can also use these commands between UNIX and Linux systems.
Please send questions or comments to www@sun-valley.stanford.edu