ssh while ssh-agent is running
Damien Miller
djm at mindrot.org
Wed Oct 2 01:43:03 AEST 2024
On Mon, 30 Sep 2024, Sam Darwin wrote:
> Hi,
> I run into a certain problem from time to time.
>
> 1. Configure and launch ssh-agent.
> 2. That's usually perfect.
> 3. Occasionally, connect to a different and less common remote server.
> Use ssh -i keyfile
> 4. ssh -i keyfile fails. Because ssh-agent doesn't know about that key.
>
> If you are specifying a key "-i key", then you are specifying a key, and
> clearly don't need to use the keys from ssh-agent. Could ssh prefer the key
> from the command line? Give that precedence, over using the ssh-agent keys?
ssh should do this already. Please post a debug trace "ssh -vvv ..."
and we'll be able to see what broke.
More information about the openssh-unix-dev
mailing list