Xamal.SSH.Host (xamal v0.3.1)

Copy Markdown View Source

Host struct and helpers for SSH connections.

Summary

Functions

Extract the hostname from a host string (may include user@ prefix).

Get the port for a host, using ssh config default.

Get the user for a host, falling back to ssh config.

Functions

hostname(host)

Extract the hostname from a host string (may include user@ prefix).

port(host, ssh_config)

Get the port for a host, using ssh config default.

user(host, ssh_config)

Get the user for a host, falling back to ssh config.