ssh_conn_is_connected
Verify an SSH connection is alive with a real round trip, detecting idle-dropped sessions and returning False so you can reconnect.
Instructions
Check whether there is a WORKING SSH connection - a real round trip to the host (a few milliseconds normally, at most ~5s), not just a cached flag. A connection that died while idle (e.g. dropped by a firewall overnight) is detected, dropped, and reported as False.
Returns: bool: True if the connection works, False otherwise - then reconnect with ssh_conn_connect(host_name=...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |