Michael Albinus writes: Hi Dmitry, >> The command can be simple, like 'ls' or 'echo 123'. I also see this >> added to *Messages*: >> >> Tramp: Inserting >> ‘/ssh:dgutov@fencepost.gnu.org:/home/d/dgutov/.tramp_history’...done > > According to reading .tramp_history: this is performed in > comint-read-input-ring, called from shell-mode. comint-input-ring-file-name > is set in shell-mode, I don't see a trivial solution to suppress > this. Likely, we must extend shell-mode for this case. We could add a user option remote-file-name-inhibit-input-ring which suppresses reading the remote histfile, when set to non-nil. See appended patch. Eli? Best regards, Michael.