I'm facing a major issue with Tramp and Emacs 27.1 on a Mac (10.15.7), which makes it almost impossible to work on remote files ...

As soon as I start to type a SSH or SCP based URL in the mini buffer (after C-x C-f), I get a dialog from the OS, that I need to permit access to some keychain password. One of those trigger this issue:


The dialog always asks for access to the oldest entry in my keychain, totally unrelated to what I do in emacs.

When I permit the access, I've still a chance to stop (ESC or C-g). When I reject, the emacs freeze and I can only kill the app.

Any hint or recommendation is very appreciated.

Br, Michael

PS: When I type the URL faster, or paste the full URL, I pass the issue sometimes and I can open remote files.

  • I don't know why you are asked for the keychan password. This needs more investigation, better you ask on the [email protected] ML. Tramp blocking on macOS, however, has been reported several times last months. There are some fixes, some of them in Emacs 28, some of them in Tramp itself. For the latter fixes, you might try the recent Tramp from GNU ELPA, whether it helps. Commented Feb 9, 2021 at 10:09
  • Thanks for the hints ... I'll try them.
    – Micl
    Commented Feb 9, 2021 at 10:22

1 Answer 1


Thanks to the hints I've updated the bundled version of tramp (2.4) with the one from ELPA (

After this the problems were resolved in Emacs 27.1.

All URLs over SSH/SCP are working, on high and low latency networks, with and without SUDO.

Thanks for the support!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.