RemoteConnect

RemoteConnect["host"]

connects to the specified remote host.

RemoteConnect[IPAddress["address"]]

connects to the machine with the specified IP address.

RemoteConnect["host",username]

connects using the specified username for the remote host.

RemoteConnect["host",username,password]

connects using the specified username and password.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Connect to a remote host:

Display the time since boot for the remote machine:

Issue multiple commands in a single session:

Write to the object like a stream:

Read from the object like a stream:

Close the session:

Scope  (1)

Connect to a remote host:

The object contains properties relevant to the connection:

List the properties:

Close the session:

Options  (4)

Authentication  (3)

Use the Authentication option to provide a username and/or password:

Connect using an identity file for authentication:

Set a value for $SSHAuthentication:

Use the default authentication contained in $SSHAuthentication to connect:

RemoteAuthorizationCaching  (1)

Use the RemoteAuthorizationCaching option to save a public key on the remote host:

Now a connection can be made without requiring a prompt:

Neat Examples  (1)

Connect to a remote machine:

Define a function that will run evaluations via wolframscript on a remote machine:

Evaluate $MachineName both locally and remotely:

Evaluate $MachineID both locally and remotely:

Close the session:

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

Text

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

CMS

Wolfram Language. 2018. "RemoteConnect." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RemoteConnect.html.

APA

Wolfram Language. (2018). RemoteConnect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemoteConnect.html

BibTeX

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

BibLaTeX

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