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 SSHAUTHSOCK ssh -i newkey host
Add a comment