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: Mon, 12 Jan 2015 14:42:23 -0500 Message-ID: <87twzvbxb4.fsf@gmail.com> References: <87vbkbre16.fsf@bach.histomat.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421091769 15224 80.91.229.3 (12 Jan 2015 19:42:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2015 19:42:49 +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 Mon Jan 12 20:42:43 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 1YAksq-0005aS-Jr for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Jan 2015 20:42:40 +0100 Original-Received: from localhost ([::1]:36108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAksp-0003Ri-PR for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Jan 2015 14:42:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAksf-0003Rc-2r for help-gnu-emacs@gnu.org; Mon, 12 Jan 2015 14:42:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAksb-0006XG-2Q for help-gnu-emacs@gnu.org; Mon, 12 Jan 2015 14:42:29 -0500 Original-Received: from mail-yk0-x236.google.com ([2607:f8b0:4002:c07::236]:33670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAksa-0006XC-UE for help-gnu-emacs@gnu.org; Mon, 12 Jan 2015 14:42:24 -0500 Original-Received: by mail-yk0-f182.google.com with SMTP id 131so10092861ykp.13 for ; Mon, 12 Jan 2015 11:42:24 -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=M3W1VTX/4vAhnkhrceGblqhAPMQ/ZQCrExAMuZt5bTk=; b=NknK/B1IEMQ8q54td86IR73UweNOMCuSPNCI2xzyURHG92ai0qlQA5GZtX6xGrKYuq LYwqZQ7JAD9k4m8YAabiAhSz/qX7AJF63/MxRSuR2v6+Uvhmm4tNLSlTxdJ3ly9jRvLh P4GTvf/gILn6O2nGoy0gZvh6lVlXj2SzYM2t2LLLc+MXhxyLBMTmTx2KiCEJekiiWMsA M7goVz/+SuAywZ/4nfmtBNKy2bnmqQ1DYqbvohDFX9IfkXTKX1uiuxvGg3c6K8r+AuZo IssPM5XyqZMXfRlCU64irlL4KEo4oCjUNrBkN6WRYiJ4iXoI3y14HH45C3y6npPYpWwJ okAg== X-Received: by 10.236.39.9 with SMTP id c9mr24119206yhb.117.1421091744280; Mon, 12 Jan 2015 11:42:24 -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 m46sm11177323yho.14.2015.01.12.11.42.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jan 2015 11:42:23 -0800 (PST) In-Reply-To: <87vbkbre16.fsf@bach.histomat.net> (Haines Brown's message of "Mon, 12 Jan 2015 14:32:05 -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:c07::236 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:102035 Archived-At: 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 Haines Brown writes: > I want to gain access to two machines on the LAN by means of ssh. In > order to use emacs as a file manager, I do # ssh -Y remotehost, and then > start emacs on that host, and split its window. One buffer accesses > files on the remote machine, and I want the other buffer to access the > local machine in order to use emacs to transfer files between the > hosts. However, this does not work. > > For example, if I bring up a shell in emacs (C-!) and do ! ssh localhost, > I get: > > Pseudo-terminal will not be allocated because stdin is not a terminal. > ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory > Permission denied, please try again. > ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory > Permission denied, please try again. > ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory > Permission denied (publickey,password). > > Is the problem not having access to pseudo-terminal, or it that there is > no /usr/bin/ssh-askpass file? How do I construct that file. Why can't I > just provide the password when prompted for it? > > Haines Brown