RemoteFile
RemoteFile[URL["uri"]]
is a symbolic representation of a file on a remote machine.
Details and Options
- RemoteFile["uri"] can also be used.
- In RemoteFile[URL["uri"]] or RemoteFile["uri"], "uri" can be any kind of URI, including scp, sftp, etc.
- RemoteFile supports the following options:
-
Authentication $SSHAuthentication authentication parameters to be used - In the form Authentication->assoc, the association assoc can contain these keys:
-
"Username" username to use for authentication "Password" password to use for authentication "SSHKey" SSH identity "SSHKeyPassword" passphrase string to used to decrypt "SSHKey" - An SSH identity can be given in the form "SSHKey"->File[ident], where ident is a file containing an SSH private key. It can also be given as "SSHKey"->"string", where string is an SSH private key.
Examples
open allclose allBasic Examples (4)
Copy a file from a remote machine using the scp secure protocol:
Copy to a remote file specified as a URL:
Copy a file from a remote machine using sftp:
Copy remote files directly using different authentication for source and destination machines:
Scope (4)
Options (1)
Authentication (1)
Set a value for $SSHAuthentication:
Copy a file using the default authentication contained in $SSHAuthentication:
Text
Wolfram Research (2019), RemoteFile, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoteFile.html.
CMS
Wolfram Language. 2019. "RemoteFile." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RemoteFile.html.
APA
Wolfram Language. (2019). RemoteFile. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemoteFile.html