Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

SSH.UserAuthList

List supported authentication methods.

Component Version macOS Windows Linux Server iOS SDK
SSH 6.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "SSH.UserAuthList"; SSH; Username )   More

Parameters

Parameter Description Example
SSH The SSH session reference number from the plugin. $ssh
Username Username which will be used while authenticating. Note that most server implementations do not permit attempting authentication with different usernames between requests. Therefore this must be the same username you will use on later userauth calls. "cs"

Result

Returns text or error.

Description

List supported authentication methods.
Send a SSH_USERAUTH_NONE request to the remote host. Unless the remote host is configured to accept none as a viable authentication scheme (unlikely), it will return SSH_USERAUTH_FAILURE along with a listing of what authentication schemes it does support. In the unlikely event that none authentication succeeds, this method with return "". This case may be distinguished from a failing case by examining Authenticated.

Examples

Query authentication list:

Set Variable [$authuserlist; Value:MBS( "SSH.userauthlist"; $ssh; SSH::Username)]

See also

This function checks for a license.

Created 29th May 2016, last changed 9th November 2021


SSH.UserAuthKeyboardInteractive - SSH.UserAuthPassword