4 ms·
If you want to do this only for a single invocation, this will work: ssh -o IdentitiesOnly=yes -i /dev/null host Specifying just IdentitiesOnly is not enoug
by IsmaOlvey 9y ago
If you want to do this only for a single invocation, this will work:
ssh -o IdentitiesOnly=yes -i /dev/null host
Specifying just IdentitiesOnly is not enough.
- deathanatos 9y ago> Specifying just IdentitiesOnly is not enough. In what manner?
- js2 9y agoWith IdentitiesOnly, any explicitly configured via IdentityFile, or the default identity file if none are configured explicitly, is/are still sent. Using "-i /dev/null" in combination with IdentitiesOnly prevents that.
- pslam 9y agoOr just never install an identity in the default location (.ssh/id_*)
- deathanatos 9y agoInteresting. If you're right, the manual leaves out the rather critical "or the default identity file" bit: > Specifies that ssh(1) should only use the authentication identity and certificate files explicitly configured in the ssh_config files or passed on the ssh(1) command-line, even if ssh-agent(1) or a PKCS11Provider offers more identities.
- js2 9y agoI verified the behavior with ssh -vv (macOS Sierra).