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:

Introduced in 2018
 (11.3)