From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Haines Brown Newsgroups: gmane.emacs.help Subject: Re: run ssh in emacs Date: Tue, 13 Jan 2015 07:38:29 -0500 Message-ID: <20150113123829.GA3285@historicalmaterialism.info> References: <87vbkbre16.fsf@bach.histomat.net> <87twzvbxb4.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1421153299 12367 80.91.229.3 (13 Jan 2015 12:48:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2015 12:48:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Tory S. Anderson" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 13:48:12 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YB0tI-0004qX-24 for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 13:48:12 +0100 Original-Received: from localhost ([::1]:38656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB0tH-00040D-7q for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 07:48:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB0sq-0003wo-KE for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 07:47:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB0sk-0003Tv-A0 for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 07:47:44 -0500 Original-Received: from outbound-relay1.guardedhost.com ([216.239.133.201]:23299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB0sk-0003Ss-4H for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 07:47:38 -0500 Original-Received: from relay.omnis.com (ten-mx04.omnis.com [216.239.133.144]) by outbound-relay.guardedhost.com (Postfix) with ESMTP id 3kMBCr4jg4z3xsb; Tue, 13 Jan 2015 12:38:32 +0000 (GMT) Original-Received: from bach.histomat.net (unknown [32.210.114.254]) (Authenticated sender: brownh@historicalmaterialism.info) by relay.omnis.com (Postfix) with ESMTPSA id 3kMBCq2fF0zFqJ5; Tue, 13 Jan 2015 12:38:31 +0000 (GMT) Original-Received: from haines by bach.histomat.net with local (Exim 4.80) (envelope-from ) id 1YB0jt-0002qS-Fz; Tue, 13 Jan 2015 07:38:30 -0500 Content-Disposition: inline In-Reply-To: <87twzvbxb4.fsf@gmail.com> X-Operating-System: GNU/Linux 3.2.0-4-686-pae Debian Wheezy X-URL: www.historicalMaterialism.info User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: haines@historicalmaterialism.info X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:57:07 +0000) X-SA-Exim-Scanned: Yes (on bach.histomat.net) X-Virus-Scanned: clamav-milter 0.98.4 at ten-mx04.omnis.com X-Virus-Status: Clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse-Id: 997e3e34-f4b8-409e-95ce-25b5b802f218 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.239.133.201 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102041 Archived-At: 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 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