# ssh_key_validate

Validates an SSH key's format.

## Signature

```rhai
ssh_key_validate(key_content: String) -> bool
```

## Parameters

- `key_content` - SSH key content to validate

## Returns

`true` if the key format is valid, `false` otherwise.

## Supported Key Types

- ssh-rsa
- ssh-dss
- ssh-ed25519
- ecdsa-sha2-nistp256
- ecdsa-sha2-nistp384
- ecdsa-sha2-nistp521
- OpenSSH format private keys

## Example

```rhai
// Read and validate a key
let key = ssh_key_read("/home/user/.ssh/id_rsa.pub");
if ssh_key_validate(key) {
    print("SSH key is valid");
} else {
    print("SSH key is invalid");
}

// Validate key content directly
let valid = ssh_key_validate("ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGfMZlIFRE user@host");
print(`Key valid: ${valid}`);
```

## See Also

- `ssh_key_read` - Read SSH key from file
