Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running w/o a host, ssh-ident should not load any keys #44

Open
gzm55 opened this issue Nov 16, 2017 · 1 comment
Open

When running w/o a host, ssh-ident should not load any keys #44

gzm55 opened this issue Nov 16, 2017 · 1 comment

Comments

@gzm55
Copy link

gzm55 commented Nov 16, 2017

HI,

When using ssh-ident to wrap ssh, if call as ssh or ssh -o xxx without a host, we could mean to detect some feature of ssh or see the help. In these cases, the better way IMO is just call the real ssh without loading keys.

Further more, even if with host, we may still want to skip ssh-agent operations, such as ssh -O ctl_cmd host.example.com.

Can we detect these scenarios more precisely?

@maddes-b
Copy link

Recognizing all those scenarios would be annoying and a never ending task, as there could be endless combinations where loading keys is not necessary.

It's easier to just call the original ssh directly with its path, e.g. /usr/bin/ssh.
In scripts this only has to be done once.
For interactive sessions an shell alias would reduce typing and avoid knowing the correct path, e.g alias sshorg='/path/to/original/ssh'. Define it in your .profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants