You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, goph only respects SSH_AUTH_SOCK environment variable and ignores default SSH config path. This causes incorrect behavior compared to how ssh works.
casegoph.HasAgent():
auth, err=goph.UseAgent()
ssh respects ~/.ssh/config and checks if there Host * host, then uses IdentityAgent.
Follow-up issue for: #26 (comment)
By default,
goph
only respectsSSH_AUTH_SOCK
environment variable and ignores default SSH config path. This causes incorrect behavior compared to howssh
works.ssh
respects~/.ssh/config
and checks if thereHost *
host, then usesIdentityAgent
.We should reconsider how
HasAgent
will work:We could use https://github.com/kevinburke/ssh_config to check if
ssh_config.Get("*", "IdentityFile")
has any value. If so, give precedence to it.Also, we should add a new arg to use custom SSH agent socket path:
This function enforces us to set
$SSH_AUTH_SOCK
, but we'd prefer to set optional SSH agent socket path.The text was updated successfully, but these errors were encountered: