[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run ssh in emacs

From: Tory S. Anderson
Subject: Re: run ssh in emacs
Date: Tue, 13 Jan 2015 09:29:59 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

I forgot to mention, I also found this handy (although I might be able to 
forego it with the authinfo trick):

    ;Cache passwords for one hour
    (setq password-cache-expiry 3600)

With this you don't have to enter your password every few minutes...

Haines Brown <> writes:

> On Mon, Jan 12, 2015 at 02:42:23PM -0500, Tory S. Anderson wrote:
>> I do something similar (I think) with my web development, but I go
>>  about it differently. I am already in emacs on my local machine and
>>  use the `M-x shell` to then ssh into the remote machine. For file
>>  management, I Tramp set up to use SSH by default, and I've had
>>  success copying back and forth remote-to-local and vice versa that
>>  way. Using dired/tramp, I can just highlight a file and hit "C"
>>  (copy) and enter the local location, or the other way around. It
>>  works pretty well for me (I've replaced putty and Filezilla with
>>  emacs), and I was doing a split-screen local/remote just yesterday
>>  with it.
>> - Tory
> Thanks, Tory, that was a help. I was trying to run ssh from command
> prompt rather than shell. 
> Can I expand on my question with one that is a bit OT? I use ~/.netrc
> (despite the hazards) to automate log in to remote machines. However
> things seem to have changed over the years since I last used it. I have
> a stanza like this, where anon will be the name of remote machine on the
>    machine root@anon
>         login root
>         password <password>
> When in Emacs I log into the remote machine with 
>    C-x C-f /root@anon:/home/user
> I am prompted for the password which is not automatically sent:
>    Password for /scpc:root@anon
> This "scpc" method is new to me. I tried putting into .netrc the machine
> value scpc.root@anon and scpc:root@anon, but still am prompted for the
> password. The Tramp manual and man netrc no help.
> Haines

reply via email to

[Prev in Thread] Current Thread [Next in Thread]