|
How to Securely Copy Files Between Machines: Using scpThere are several different Unix machines here at Harvey Mudd, and on occasion you will want to transfer files between them. This is traditionally done using ftp(1) or rcp(1); however, these are insecure as not only your file, but also your password are sent unencrypted over the network and could be intercepted. In fact, fear of this has caused ftp to be disabled on turing and other machines. Instead, you can use scp(1), which is secure.
Usagescp acts a lot like cp(1), except that the file to copy and/or the destination can be prefixed with the name of a machine (followed by a colon). So, to get your homework from odin to turing, you might do:odin % scp hw5.java turing.cs.hmc.edu:~ This copies hw5.java from the current directory on odin to your home directory (which is indicated by the ~ ) on turing. You will be prompted for your turing password. A status indicator is also displayed, but it won't mean much unless the file is quite large. You can also go the other way: turing % scp odin.ac.hmc.edu:~/hw5.java . This accomplishes the same thing, but from turing's end.
Other options
Copyright (c) HMC Computer Science Department.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation;
with the no Invariant Sections, with no
Front-Cover Texts, and with no Back-Cover Texts.
A copy of the license is included in the section entitled ``GNU Free Documentation License.''
HMC Computer Science Department Contact Information |