# ssh_key_read

Reads an SSH key from a file.

## Signature

```rhai
ssh_key_read(path: String) -> String
```

## Parameters

- `path` - Path to the SSH key file (e.g., "/home/user/.ssh/id_rsa.pub")

## Returns

The contents of the SSH key file as a string.

## Errors

Throws an error if the file does not exist or cannot be read.

## Example

```rhai
// Read a public key
let key = ssh_key_read("/home/user/.ssh/id_rsa.pub");
print(`Key: ${key}`);

// Read and validate
let key = ssh_key_read("/home/user/.ssh/id_ed25519.pub");
if ssh_key_validate(key) {
    print("Key is valid");
}
```

## See Also

- `ssh_key_validate` - Validate SSH key format
