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.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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


SSH.GetUserName - SSH.HostKeyHash

💬 Ask a question or report a problem