SSH.UserAuthList
----------------

List supported authentication methods.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SSH](component_SSH.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "SSH.UserAuthList"; SSH; UserName ) 

**MBS**( **"SSH.UserAuthList";** /\* List supported authentication methods. \*/  
**$SSH**; /\* The SSH session reference number from the plugin. \*/   
**$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.e.g. "cs" \*/ 

### 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

- [SSH.Connect](SSHConnect.md)
- [SSH.Execute](SSHExecute.md)
- [SSH.New](SSHNew.md)

This function checks for a license.

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

  
[SSH.UserAuthKeyboardInteractive](SSHUserAuthKeyboardInteractive.md) - [SSH.UserAuthPassword](SSHUserAuthPassword.md)

[HTML Version](SSHUserAuthList.shtml)