$HOME/.ssh/config and host/hostname resolution how-to?

Hamish Allan hamish at gmail.com
Thu Dec 20 09:41:04 EST 2007


On Dec 19, 2007 11:34 AM, Duncan Ferguson <duncan_j_ferguson at yahoo.co.uk> wrote:

> What is the easiest way of looking up a hostname to see if it exists,
> taking into account the .ssh/config file?

It sounds to me like you want to use ssh to parse ~/.ssh/config for
you. To avoid any overhead, you could simply parse it yourself.

Hamish


More information about the openssh-unix-dev mailing list