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 09:29:59 -0500 Message-ID: <87egqy3g9k.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 1421159430 17297 80.91.229.3 (13 Jan 2015 14:30:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2015 14:30:30 +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 15:30:25 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 1YB2UC-0003CC-B8 for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 15:30:24 +0100 Original-Received: from localhost ([::1]:39631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB2UB-0002s9-QM for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 09:30:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB2Tu-0002qn-7s for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 09:30:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB2Tp-0007FE-U1 for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 09:30:06 -0500 Original-Received: from mail-yh0-x232.google.com ([2607:f8b0:4002:c01::232]:35072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB2Tp-0007Dc-O2 for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 09:30:01 -0500 Original-Received: by mail-yh0-f50.google.com with SMTP id b6so1547262yha.9 for ; Tue, 13 Jan 2015 06:30:01 -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=YmaEPS+dil95jjiseFB7fhRWC63bucLoa+BpKRDBekA=; b=t/NTgnlmCUPOnapXdnynWsJB7vy/YcmKH7GsINLwaQRVOhkNjsNo6/7CNWV1MnHcxl AwXL98ud4U40mtJWiPlNU18Pyy6nDXH8IYS2NndnCRop5yytmJOA6OuumPMfnVAwLE4G /8P9OR3BeHP6A6gEgGVvxCUgC3ZM0hXq6Si67LF9vNizvl6v4nB53fNUPd4V8wJvwDSL 2HHIf+qM4peEAnD44A0BwW5tpfpdYN2GsrYWXSgeQdcBMhHRTfr1iepEtab0Hf2YtCnO bBm7DnSheSHzETbjmgCgMacuAlnH8IPzRd0CA0AJSJEBR6dkPjgqc4XvfH05jLeeKNHT /dLQ== X-Received: by 10.236.17.164 with SMTP id j24mr26791285yhj.143.1421159401269; Tue, 13 Jan 2015 06:30:01 -0800 (PST) Original-Received: from localhost.localdomain (lawn-143-215-59-68.lawn.gatech.edu. [143.215.59.68]) by mx.google.com with ESMTPSA id c44sm12856664yha.22.2015.01.13.06.29.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jan 2015 06:29:59 -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::232 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:102047 Archived-At: 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 > 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 > > > >