Under Windows settings tramp

Source: Internet
Author: User

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?

  1. 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]
  2. 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
  3. 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)) 
  4. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.