X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=gku+NbG27msTG4xc 8uLUQiI6cBvWNkZ5Ixm2xcdr1c5wgF5A2VteDiPQ1GKurr14HZUMI+JYDcZIhoVG z4BZ91bRAb7VzXFp+yQUgGb7LrY092k/49RxG7YfW/aPCPD6r932QDsPbc4vuFV0 BVEeOU/LkTCERMcwQVC86tWg8dU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=akTXMwOff3PgkepA3diyol 8CLB8=; b=YNGkWSzHOH/8dCjlFlurt3sEoWFkuzzZ45PnHfyOlfise4DbWabef0 qeRfo6gPDmVVDxBMDZPnLzSfFGLFWkkT3euNtu5lIFFMIPqExgvfXRSAS+KNPW3t ibtiVcSZpOvqgnH9smrzt9gZPiAxsSZQ/gflcqBVOCaxkNY2RXmJM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: limerock04.mail.cornell.edu X-CornellRouted: This message has been Routed already. Subject: Re: Can't connect to ssh host with Emacs tramp To: cygwin AT cygwin DOT com References: From: Ken Brown Message-ID: <0681478a-85c7-47f5-9525-7f9506d58b10@cornell.edu> Date: Fri, 5 Jan 2018 12:22:14 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Cornell-Gauge: Gauge=X X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes On 1/5/2018 11:37 AM, David Karr wrote: > On Thu, Jan 4, 2018 at 5:15 PM, Ken Brown wrote: >> On 1/4/2018 5:42 PM, David Karr wrote: >>> >>> I've reviewed some of the Emacs tramp documentation, but I'm not sure >>> what the issue is. >>> >>> If I'm using Cygwin, I don't need the putty components for this, do I? >> >> >> No, I make ssh connections through Emacs tramp without putty. >> >>> When I attempt to open a text file in my homedir on a remote host, >>> which I can ssh to (passwordless) from the shell, it just times out. >>> >>> The *Messages* buffer shows this (fqhn is the hostname): >>> ------------------ >>> Tramp: Opening connection for fqhn using scp... >>> Tramp: Sending command ‘exec ssh -o ControlMaster=auto -o >>> ControlPath='tramp.%C' -o ControlPersist=no -e none fqhn’ >>> Tramp: Waiting for prompts from remote shell... >>> Timeout reached, see buffer ‘*tramp/scp fqhn*’ for details >>> Tramp: Waiting for prompts from remote shell...failed >>> Tramp: Opening connection for fqhn using scp...failed >>> ----------------------- >>> >>> There doesn't appear to be a buffer named "*tramp/scp fqhn*". >> >> >> Sorry, I don't know enough about tramp to diagnose this. Maybe it would >> help if you would say exactly what commands you gave. And does the problem >> occur if you start with 'emacs -Q'? > > What "commands" am I giving? All I'm trying to do is open a single > file on the remote host. Yes, but I wanted to see exactly what you typed in order to specify the remote file. Sorry if I confused you by saying "commands". > I'm entering "//fqhn:/home//.bash_profile". I'm not aware of any valid Tramp syntax that starts with a double slash. [On Cygwin, I think file names starting with a double slash refer to network files, but I don't think this should cause Emacs to invoke Tramp.] See the section "Remote Files" in the Emacs manual. You might find this easier than the Tramp manual. In particular, I suggest you try something like /ssh:fqhn:/home//.bash_profile or /ssh:@fqhn:/home//.bash_profile You can omit "ssh:' in emacs-25, but this won't be allowed in emacs-26, so you might as well get used to using it. I'm away from home at the moment and can't easily test that I've got all this exactly right. > I get different behavior using "emacs -Q". I don't get a timeout > error, but I also don't think it even attempted to connect to the > remote box. The editor view just opens with the given name, but it's > empty (it shouldn't be). The file you specified with the double slash syntax doesn't exist. > The "*Messages*" buffer doesn't indicate > that it ever tried to make a connection. It also says "Use M-x > make-directory RET RET to create the directory and its parents". So you must have some customization that's changing the behavior. You might have to bisect your .emacs file to find it. Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple