Home > |
---|
Use this command to securely move updates and certificates and other files from a source computer onto the Luna appliance, or to move appliance certificates or log files out to a client computer.
All packages from SafeNet are signed and encrypted and come with an authorization code (authcode) that must be provided to decrypt and use the package.
scp [options] [user@]host:source target
scp [options] source [source...] [user@]host:target
scp [options] -ls user@host:filespec
-p [] preserve file attributes.
-q [] quiet, don't show statistics
-r [] copy directories recursively
-S [<path-to-ssh>] specify the location of SSH
-v [] show verbose messages
-P port [] connect to specified port
-pw passw [] login with specified password
-unsafe [] allow server-side wildcards (DANGEROUS)
C:\Program Files\SafeNet\LunaClient>scp test-file.txt admin@myluna:
admin@myluna's password: ********
test-file.txt | 0 kB | 0.1 kB/s | ETA: 00:00:00 | 100%
C:\Program Files\SafeNet\LunaClient>
The colon is required. Type nothing after the colon when moving files onto
the Luna appliance. All files that are scp’d to the Luna appliance go
to a predetermined directory, which you cannot change (for security reasons).
While it is possible to change the filename during scp (by typing a new
filename after the colon in the scp command), this is not recommended
since most operations expect certain filenames and can fail if those are
not found.
C:\Program Files\SafeNet\LunaClient>scp test-file.txt admin@myluna:different-file.txt
admin@myluna's password: ********
test-file.txt | 0 kB | 0.1 kB/s | ETA: 00:00:00 | 100%
C:\Program Files\SafeNet\LunaClient>
If the arriving file carries an unexpected name, it may not be handled correctly by subsequent commands
If you have SSH located in a non-standard (UNIX) location, launch the scp command with the "-S" option (that's an uppercase "s"), followed by the path to SSH, before supplying the paths to the source and target files, like:
scp -S /usr/bin/ssh <source file> <dest file>