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. _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev