Skip to content

Handle error when the connection doesn't use pub/priv keys

Currently, if a connection doesn't have a private/public key pair setup there is a :

panic: runtime error: invalid memory address or nil pointer dereference

Just handle it more gracefully, or redirect to the default SSH's host. Even though it would be better to discourage to not have a priv/pub key usage.