SSH.WaitClosed
--------------

Wait for the remote to close 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.WaitClosed"; SSH ) 

**MBS**( **"SSH.WaitClosed";** /\* Wait for the remote to close the channel. \*/  
**$SSH**) /\* The SSH session reference number from the plugin. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SSH | The SSH session reference number from the plugin. | $ssh |

### Result

Returns OK or error.

### Description

Wait for the remote to close the channel.  
Enter a temporary blocking state until the remote host closes the named channel. Typically sent after Close in order to examine the exit status.  
This function checks for a license.

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

  
[SSH.UserAuthPublicKeyFile](SSHUserAuthPublicKeyFile.md) - [SSH.WaitEOF](SSHWaitEOF.md)

[HTML Version](SSHWaitClosed.shtml)