[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: run ssh in emacs
From: |
Haines Brown |
Subject: |
Re: run ssh in emacs |
Date: |
Tue, 13 Jan 2015 07:38:29 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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
LAN
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
- run ssh in emacs, Haines Brown, 2015/01/12
- Re: run ssh in emacs, Tory S. Anderson, 2015/01/12
- Re: run ssh in emacs, Tory S. Anderson, 2015/01/13
- Re: run ssh in emacs, Haines Brown, 2015/01/13
- Re: run ssh in emacs, Tory S. Anderson, 2015/01/13
- Re: run ssh in emacs, Haines Brown, 2015/01/13
- Re: run ssh in emacs, Bob Proulx, 2015/01/13