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
- RemoteConnect returns a RemoteConnectionObject.
- RemoteConnect["host"] prompts for a username and password.
- RemoteConnect["user@host"] prompts for a password only.
- RemoteConnect["user@host",password] can be used to specify both username and password.
- RemoteConnect will use an SSH agent for authentication if available.
- RemoteConnect allows the following options:
-
Authentication $SSHAuthentication authentication parameters for the connection RemoteAuthorizationCaching False whether to use remote authorization caching - 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.
- RemoteConnect["host",username,password] is equivalent to RemoteConnect["host",Authentication-><"Username"->username,"Password"->password >].
- With the setting RemoteAuthorizationCaching->True, RemoteConnect will cache authorization information remotely so as to allow passwordless connection.
Examples
open allclose allBasic Examples (1)
Scope (1)
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:
Neat Examples (1)
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:
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