How to use sshpass when loging in to remote server with Emacs / Tramp
问题 I found a related thread that describes how to login to a remote server using sshpass : sshpass -p '<password>' <ssh/scp command> How can logging in with password be accomplished in Emacs / Tramp? I presently use the following and then enter the password manually: C-x C-f /ssh:user@server:/home/user/public_html/ I have the following function, that I access from my right-click context pop-up menu: (defun lawlist-remote-server-login () (interactive) (find-file "/ssh:user@server:/home/user