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 $SSHAuthenticationauthentication 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 all

Basic 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)

Copy to a remote file using username and password authentication:

Copy a file from a remote machine using an identity file:

Read in the content of an identity file:

Copy a file from a remote machine using identity file data:

Without enough information to authenticate, a prompt will appear:

Options  (1)

Authentication  (1)

Set a value for $SSHAuthentication:

Copy a file using the default authentication contained in $SSHAuthentication:

Wolfram Research (2019), RemoteFile, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoteFile.html.

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

BibTeX

@misc{reference.wolfram_2024_remotefile, author="Wolfram Research", title="{RemoteFile}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/RemoteFile.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_remotefile, organization={Wolfram Research}, title={RemoteFile}, year={2019}, url={https://reference.wolfram.com/language/ref/RemoteFile.html}, note=[Accessed: 22-December-2024 ]}