Under Windows settings tramp
I used to think that Tramp is basically not working under Windows, or it takes a lot of effort to configure it. Found today through the Puttygen, plink these tools (all putty that set) is actually quite convenient to configure.
1Connect to Linux via Plink
Place the plink under your path, and then:
C-x c-f/plink:[email protected]:~/
I can do it!
2Don't let me enter the code every time.
Like Linux, if you use the Tramp SSH method, the public key via SSH can be used without having to enter the password every time. But what about Plink?
- First, SSH key pair is also generated under Windows and the public key is stored on the server
~/.ssh/authorized_keys2 . Ensure that the direct SSH HOST can login without a password.SSH [email protected]
- Use Puttygen to convert the public key of SSH into the PPK format. Confirm that the Plink connection does not require a password by following the command:
Plink-i FILE.PPK [email protected] Uname-a
- add a new method to tramp to join the-I parameter:
(add-to-list ' Tramp-methods ' ( "PLINKXWL" (tramp-login-program "Plink" ) (Tramp-login-arg S (( "-L" "%u" ) ( "-P" "%p" ) ( "-ssh" ) ( "%h" ) ( "-I" "/PATH/TO/PUTTY.PPK" ))) (Tramp-remote-shell "/bin/sh" ) (Tramp-remote-shell-args ()) (tramp-default-port))
- After that you can directly with the following convenience without password access. It is more convenient to save it in the bookmark when it is opened.
C-x c-f/plinkxwl:[email protected]:~/
Yeah ...
date:2014-06-28t14:44+0800
Author:william Xu
ORG version 7.9.3f with Emacs version 24
Validate XHTML 1.0