Emacs / CVS / OpenSSH: preventing password popup

后端 未结 6 1340
失恋的感觉
失恋的感觉 2021-01-18 01:50

I\'m using GNU Emacs on my Ubuntu netbook in fullscreen mode. When I edit files that are under version control and hit C-x v v to commit the latest changes, an OpenSSH popup

6条回答
  •  独厮守ぢ
    2021-01-18 02:22

    You can get ssh to multiplex all new connections to a server through existing connections. This means that as long as you have opened an ssh connection (say in a shell) new ones to the same remote host will not ask for a password. I use

    Host *
        ControlPath ~/.ssh/master-%r@%h:%p
        ControlMaster auto
        ServerAliveInterval 30
    

    in ~/.ssh/config to set this up.

提交回复
热议问题