[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp 2.26 emacs 24.3 plink
From: |
MM |
Subject: |
Re: tramp 2.26 emacs 24.3 plink |
Date: |
Wed, 9 Jul 2014 06:28:01 -0700 (PDT) |
> MM <[hidden email]> writes:
>
>> Hello,
>
> Hi,
>
>> I need to pass the -i option of plink to use a private key file.
>> How do I go about that?
>
> You might declare an own method. See tramp-sh.el, where you find
> something like
>
> --8<---------------cut here---------------start------------->8---
> (add-to-list 'tramp-methods
> '("plink"
> (tramp-login-program "plink")
> (tramp-login-args (("-l" "%u") ("-P" "%p") ("-ssh") ("%h")))
> (tramp-remote-shell "/bin/sh")
> (tramp-remote-shell-args ("-c"))
> (tramp-default-port 22)))
> --8<---------------cut here---------------end--------------->8---
>
> You might add a derived method declaration to your .emacs:
>
> --8<---------------cut here---------------start------------->8---
> (add-to-list 'tramp-methods
> '("myplink"
> (tramp-login-program "plink")
> (tramp-login-args (("-l" "%u") ("-P" "%p")
> ("-i" "/path/to/private/key/file")
> ("-ssh") ("%h")))
> (tramp-remote-shell "/bin/sh")
> (tramp-remote-shell-args ("-c"))
> (tramp-default-port 22)))
> --8<---------------cut here---------------end--------------->8---
>
> Then you are able to access a remote file as
> "/myplink:address@hidden:/path/to/file".
>
> Best regards, Michael.
>
Thank you, the invocation of plink works correctly.
I just however realized that the server doesn't allow me to actually
run a shell because my user's shell is noshell!!!!!
However SFTP is allowed.
Is there a way to use tramp for file transfers uniquely, ie visit the
remote files, edit, and on saving, it sends them back to server?
Regards,
MM
View this message in context: Re: tramp 2.26 emacs 24.3 plink
Sent from the Gnu - Tramp - Dev mailing list archive at Nabble.com.
- tramp 2.26 emacs 24.3 plink, MM, 2014/07/08
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/07/08
- Re: tramp 2.26 emacs 24.3 plink,
MM <=
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/07/09
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/07/14
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/07/16
- Re: tramp 2.26 emacs 24.3 plink, Rodrigo Amestica, 2014/07/16
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/07/16
- Re: tramp 2.26 emacs 24.3 plink, Rodrigo Amestica, 2014/07/16
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/07/16
- Re: tramp 2.26 emacs 24.3 plink, Rodrigo Amestica, 2014/07/18