Whenever I use ssh over Tramp to get to my local server (either with dired or pointing directly to a file), another buffer is also created:

#<buffer *tramp/ssh user@local_server_address*>

When I finished my editing and close the buffer I was working on, the above mentioned buffer remains. Since it is not useful to me, is there a way to automatically kill it when I finished my editing?

1 Answer 1


You can get rid of these buffers with M-x tramp-cleanup-all-connections.

  • 2
    That does not kill the buffers. tramp-cleanup-all-buffers does.
    – yujaiyu
    Mar 3, 2021 at 1:48

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.