# ping

Test SSH connectivity.

```rhai
conn.ping() -> bool
```

## Examples

```rhai
let conn = ssh_builder().host("server.example.com").build();
if conn.ping()? {
    print("SSH connection OK");
}
```

```rhai
let conn = ssh_builder()
    .host("192.168.1.100")
    .user("deploy")
    .build();

if !conn.ping()? {
    throw "Cannot connect to server";
}
```
