Don Marti

Sun 17 Apr 2005 08:33:52 PM PDT

If you make a new ssh key

and try to use it with ssh -i while running ssh-agent, ssh tries the agent first; you could end up using a key provided by the agent instead of the one you specify. You can fix this without killing the agent. Use:

env -u SSH_AUTH_SOCK ssh -i newkey host