SSH.SetEnv
----------

Set an environment variable on the channel.

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

MBS( "SSH.SetEnv"; SSH; Name; Value ) 

**MBS**( **"SSH.SetEnv";** /\* Set an environment variable on the channel. \*/  
**$SSH**; /\* The SSH session reference number from the plugin. \*/   
**$Name**; /\* The name of the variable.e.g. "test" \*/   
**$Value**) /\* The value for the variable.e.g. "test" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SSH | The SSH session reference number from the plugin. | $ssh |
| Name | The name of the variable. | "test" |
| Value | The value for the variable. | "test" |

### Result

Returns OK or error.

### Description

Set an environment variable on the channel.  
This function checks for a license.

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

  
[SSH.SessionHandshake](SSHSessionHandshake.md) - [SSH.SetTag](SSHSetTag.md)

[HTML Version](SSHSetEnv.shtml)