From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: torys.anderson@gmail.com (Tory S. Anderson) Newsgroups: gmane.emacs.help Subject: Re: run ssh in emacs Date: Tue, 13 Jan 2015 08:18:03 -0500 Message-ID: <87mw5m3jlg.fsf@gmail.com> References: <87vbkbre16.fsf@bach.histomat.net> <87twzvbxb4.fsf@gmail.com> <20150113123829.GA3285@historicalmaterialism.info> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421155108 9471 80.91.229.3 (13 Jan 2015 13:18:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2015 13:18:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Haines Brown Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 14:18:23 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 1YB1MV-0008HF-Fr for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 14:18:23 +0100 Original-Received: from localhost ([::1]:39008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB1MU-0004h2-RK for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 08:18:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB1MI-0004gx-N5 for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 08:18:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB1ME-0001Tb-Gh for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 08:18:10 -0500 Original-Received: from mail-yh0-x22e.google.com ([2607:f8b0:4002:c01::22e]:42310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB1ME-0001Sa-BT for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 08:18:06 -0500 Original-Received: by mail-yh0-f46.google.com with SMTP id t59so1371347yho.5 for ; Tue, 13 Jan 2015 05:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=fPCJiNILEYSiFKPxfToyn/B/LkcU1L2YkFI75UK1Pzs=; b=SnzZ5nEJ23QMepV07JIBWZhIhIzIe8M8MVfbrGaIOqk0eTyjNbHACLmdzsu7VyD5Bv f1Y7CkLjL3Om3Y6hmyYA34Dnx0a7V1BrhS3yXgXNhRe75ypZgysCnMYk6WQEgSl6512R ILs3gkvgeljL8Vbggb/4LxBc4yMf9Wreot+QT3BUHyahQIIIhZ2RulB3jot261YwbRLf gOk+YSVFhVaMsl719+Xo5p5rjfUc06tzEWjET2VgKC5XuxrTTbDxRSh/8ImGKuZW0LQI xRVhbaKRh5WSzMz713+Azy7Vv8PLXbmUiIAgC0PAY03tDuuNbBiGcQEK5ACcIEQkJ3t7 8g0A== X-Received: by 10.236.231.49 with SMTP id k47mr26248724yhq.86.1421155085612; Tue, 13 Jan 2015 05:18:05 -0800 (PST) Original-Received: from localhost.localdomain ([2601:0:a000:4a1:ee55:f9ff:feb5:5589]) by mx.google.com with ESMTPSA id d59sm12722423yho.52.2015.01.13.05.18.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jan 2015 05:18:04 -0800 (PST) In-Reply-To: <20150113123829.GA3285@historicalmaterialism.info> (Haines Brown's message of "Tue, 13 Jan 2015 07:38:29 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::22e 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:102043 Archived-At: Yeah, it uses SCPC by default, and I found it pretty annoying. It was fixed by adding the following to my .emacs: ;; Tramp (require 'tramp) (setq tramp-default-method "ssh") 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 > 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 > > > >