Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SSH.HostKey
Returns the hex encoded host key.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SSH | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "SSH.HostKey"; SSH { ; Selector } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
SSH | The SSH session reference number from the plugin. | $ssh | |
Selector | What value to return. Default is hex. hex: Return the key hex encoded. base64: Return key as base 64 encoded. length: Length of key in bytes. type: RSA or DSS, ECDSA256 or unknown. |
"type" | Optional |
Result
Returns text or error.
Description
Returns the hex encoded host key.Examples
Query length of key:
MBS( "SSH.HostKey"; $SSH; "length")
Query type of key:
MBS( "SSH.HostKey"; $SSH; "type")
See also
Example Databases
This function checks for a license.
Created 29th May 2016, last changed 25th June 2022