Platforms to show: All Mac Windows Linux Cross-Platform
SSH2TunnelMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Network | MBS Network Plugin | 18.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The MBS Plugin can spin of a new preemptive thread to run a tunnel to forward a SSH connection from local socket to remote server via SSH tunnel.
This works well for database access with MySQL.
By using our own thread, we are not blocking or blocked by your Xojo code.
The tunnel allows currently one connection through it, e.g. run one tunnel per MySQL connection to go through the tunnel. If you need multiple tunnels, please create multiple SSH tunnels.
- 12 properties
- property BytesReceived as Int64
- property BytesSent as Int64
- property Cancel as Boolean
- property Connected as Boolean
- property KeepAlive as Boolean
- property LocalAddress as String
- property LocalPort as Integer
- property Messages as String
- property RemoteAddress as String
- property RemotePort as Integer
- property Running as Boolean
- property Session as SSH2SessionMBS
- 3 methods
- method Constructor(session as SSH2SessionMBS)
- method Destructor
- method Run
This class has no sub classes.
Some examples using this class:
- /Network/SSH/SSH tunnel connection
- /Network/SSH/SSH tunnel for database
- /Network/SSH/SSH tunnel for database Desktop
Blog Entries
- MBS Xojo Plugins, version 22.1pr6
- MBS Xojo Plugins, version 20.3pr1
- MBS Xojo Plugins, version 20.2pr1
- MBS Xojo Plugins, version 18.5pr3
- MBS Xojo Plugins 18.3
- MBS Xojo Plugins, version 18.3pr3
- SSH tunnel in Xojo
Videos
- Presentation from Munich conference about MBS Plugins.
- Presentation from Xojo Developer Conference 2019 in Miami.
Release notes
- Version 22.1
- Fixed a problem in SSH2TunnelMBS class, where cancel didn't end the tunnel quickly in some cases.
- Version 20.3
- Added Connected property for SSH2TunnelMBS class.
- Version 20.2
- Added KeepAlive property for SSH2TunnelMBS class.
- Version 18.5
- Changed SSH2TunnelMBS class to stop thread in destructor.
- Version 18.3
- Added SSH2TunnelMBS class.
The items on this page are in the following plugins: MBS Network Plugin.
SSH2SessionMBS - SSH2UserAuthKeyboardInteractivePromptMBS
