Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Authenticate a session with a public key, read from a file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SSH | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
SSH | The SSH session reference number from the plugin. | $ssh | |
Username | user name to authenticate as. | "cs" | |
PublicKey | Path of the public key file. (e.g. /etc/ssh/hostkey.pub). Optional. Pass empty text if you only have private key. |
"/Users/cs/Desktop/id_rsa.pub" | |
PrivateKey | Path of the private key file. (e.g. /etc/ssh/hostkey) | "/Users/cs/Desktop/id_rsa" | |
Passphrase | Passphrase to use when decoding privatekey. Can be empty. |
"" | Optional |
Returns OK or error.
Login with public key:
Set Variable [$r; Value:MBS( "SSH.UserAuthPublicKeyFile"; $ssh; SSH::Username; "your key path"; "your key path"; SSH::Password )]
Login with keys:
Set Variable [$r; Value: MBS( "SSH.UserAuthPublicKeyFile"; $ssh; SSH::Username; "/Users/cs/Desktop/id_rsa.pub"; "/Users/cs/Desktop/id_rsa"; SSH::Password ) ]
This function checks for a license.
Created 29th May 2016, last changed 20th June 2016