SSH.UserAuthPassword
--------------------

Authenticate a session with username and password.

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

MBS( "SSH.UserAuthPassword"; SSH; UserName; Password ) 

**MBS**( **"SSH.UserAuthPassword";** /\* Authenticate a session with username and password. \*/  
**$SSH**; /\* The SSH session reference number from the plugin. \*/   
**$UserName**; /\* Name of user to attempt plain password authentication for.e.g. "cs" \*/   
**$Password**) /\* Password to use for authenticating username.e.g. "test" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SSH | The SSH session reference number from the plugin. | $ssh |
| UserName | Name of user to attempt plain password authentication for. | "cs" |
| Password | Password to use for authenticating username. | "test" |

### Result

Returns OK or error.

### Description

Authenticate a session with username and password.  
Attempt basic password authentication. Note that many SSH servers which appear to support ordinary password authentication actually have it disabled and use Keyboard Interactive authentication (routed via PAM or another authentication backed) instead.  
### Examples

Login with password:

 Set Variable \[$r ; Value:MBS ( "SSH.UserAuthPassword"; $ssh ; SSH::Username ; SSH::Password )\]  
### See also

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

### Example Databases

- [Network/SSH Tunnel](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/SSH%20Tunnel.shtml#1ScriptAnchor_)
- [Network/SSH](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/SSH.shtml#1ScriptAnchor_)

This function checks for a license.

Created 29th May 2016 , last changed 30th May 2016

  
[SSH.UserAuthList](SSHUserAuthList.md) - [SSH.UserAuthPublicKey](SSHUserAuthPublicKey.md)

[HTML Version](SSHUserAuthPassword.shtml)