Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SSH.HostKeyHash
Returns the hex encoded host key hash.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SSH | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "SSH.HostKeyHash"; SSH { ; Type } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
SSH | The SSH session reference number from the plugin. | $ssh | |
Type | Which type to return. Can be MD5 or SHA1. SHA1 is default if empty or not provided. |
"SHA1" | Optional |
Result
Returns text or error.
Description
Returns the hex encoded host key hash.MD5 is 16 bytes, so 32 hex characters. SHA1 is 20 bytes, so 40 hex characters.
Added SHA256 for MBS Plugin 9.5 with 32 bytes.
This function checks for a license.
Created 7th June 2016, last changed 18th September 2019
