SSH.Tunnel.SetKeepAlive
-----------------------

Sets keep alive status.

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

MBS( "SSH.Tunnel.SetKeepAlive"; SSH; Value ) 

**MBS**( **"SSH.Tunnel.SetKeepAlive";** /\* Sets keep alive status. \*/  
**$SSH**; /\* The SSH session reference number from the plugin. \*/   
**$Value**) /\* The new setting.  
Pass 1 to enable keep-alive or 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SSH | The SSH session reference number from the plugin. | $ssh |
| Value | The new setting.   Pass 1 to enable keep-alive or 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Sets keep alive status.  
If set to 1, TCP keep alive probes will be sent to avoid TCP/IP timeouts.   
Set to 0 (default behavior) to disable keep alive probes.  
  
See also [SSH.SetTimeout](SSHSetTimeout.md).  
### Examples

Enable keep alive:

 Set Variable \[ $r ; Value: MBS ( "SSH.Tunnel.SetKeepAlive"; $SSH ; 1 ) \]  
### See also

- [SSH.SetTimeout](SSHSetTimeout.md)
- [SSH.Tunnel.GetKeepAlive](SSHTunnelGetKeepAlive.md)

### Release notes

- **Version 10.2**
    - Added [SSH.Tunnel.GetKeepAlive](https://www.mbsplugins.eu/SSHTunnelGetKeepAlive.shtml) and [SSH.Tunnel.SetKeepAlive](https://www.mbsplugins.eu/SSHTunnelSetKeepAlive.shtml) functions.

### Blog Entries

- [News about the MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-19/News_about_the_MBS_FileMaker_P/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.2pr1](https://www.mbsplugins.de/archive/2020-04-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st March 2020 , last changed 19th April 2020

  
[SSH.Tunnel.Running](SSHTunnelRunning.md) - [SSH.UserAuthKeyboardInteractive](SSHUserAuthKeyboardInteractive.md)

[HTML Version](SSHTunnelSetKeepAlive.shtml)