
Services: Installing and Using SCP On Your Windows PC
PSCP is a freeware SCP program. You would use this program in replace of your FTP program when your remote host supports SCP.
This program is simple to use, which is great considering you cannot FTP to Sun hosts on the JHU Computer Science network.
- Download PSCP here.
- Save pscp.exe somewhere on your hard drive.
- Open a DOS window and go to the directory where you have PSCP saved.
- Let's say you saved pscp.exe in c:pscp. Your command line syntax is as follows.
- pscp [options] [user@]host:source target
pscp [options] source [source...] [user@]host:target
Options:
-p preserve file attributes
-q quiet, don't show statistics
-r copy directories recursively
-v show verbose messages
-P port connect to specified port
-pw passw login with specified password
Copying files from your UNIX host to your Windows PC.
- In order to copy a file from your UNIX host to your Windows PC your command line would look like this:
- C:pcsp>pscp username@yourhost:~username/somefile c: emp\
- This command line copies "somefile" located in your home directory on your UNIX host to the temp directory on your C: drive.
- You should see something like this fly by your DOS prompt:
- C:pcsp>pscp -v username@yourhost:~username/somefile c: emp
Logging in as "username".
username@yourhost's password: (Enter your password)
Sending command: scp -v -f ~username/somefile
Connected to yourhost.cs.jhu.edu
Sending file modes: C0600 167936 somefile
somefile | 164 kB | 164.0 kb/s | ETA: 00:00:00 | 100%
Remote exit status 0
Closing connection
- This is taking into consideration that you are already on the CS network, otherwise you would specify yourhost.cs.jhu.edu.
- Remember: Backslashes () for your DOS and Windows files and forward slashes (/) for your UNIX files.
Copying files from your Windows PC to your UNIX host.
- In order to copy a file from you Windows PC to your UNIX host your command line would look like this.
- C:pscp>pscp -v c: empsomefile username@yourhost:~username
- This command line copies "somefile" located in the temp directory on your C: drive to your home directory on your UNIX host.
- You should see something like this fly by your DOS prompt:
- C:pscp>pscp -v c: empsomefile username@yourhost:~username
Logging in as "username".
username@yourhost's password: (Enter your password)
Sending command: scp -v -t ~username
Connected to yourhost.cs.jhu.edu
Sending file modes: C0644 18124800 somefile
somefile | 17700 kb | 334.0 kb/s | ETA: 00:00:00 | 100%
Remote exit status 0
Closing connection
- This is taking into consideration that you are already on the CS network, otherwise you would specify yourhost.cs.jhu.edu.
- Remember: Backslashes () for your DOS and Windows files and forward slashes (/) for your UNIX files.
For more on PSCP see the PuTTY homepage.