From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Ingalls Newsgroups: gmane.emacs.help Subject: Re: w32 ssh trouble Date: Thu, 15 May 2003 14:52:44 GMT Organization: Road Runner - NYC Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <0RNwa.29446$h42.7629@twister.nyc.rr.com> References: <0sCwa.27818$h42.300@twister.nyc.rr.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053011327 27149 80.91.224.249 (15 May 2003 15:08:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 15 May 2003 15:08:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 15 17:08:44 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19GKKV-0006wb-00 for ; Thu, 15 May 2003 17:07:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GK9H-0001GC-0A for gnu-help-gnu-emacs@m.gmane.org; Thu, 15 May 2003 10:55:59 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!24.30.200.11!news-east.rr.com!news-server.columbus.rr.com!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!53ab2750!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 64 Original-NNTP-Posting-Host: 24.168.133.75 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyc.rr.com 1053010364 24.168.133.75 (Thu, 15 May 2003 10:52:44 EDT) Original-NNTP-Posting-Date: Thu, 15 May 2003 10:52:44 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:113268 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9764 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9764 OK. Thanks to Kai's help on XEmacs notation, I can noew try with XEmacs, and discover that it works almost the same as Emacs (in this regard). I tried plink v0.53b (should be latest binary release), and I was able to get the prompt for the password, when I run it inside M-x shell. However, it does not recognize my password, even though I know that I am entering it correctly. I was able to get the following to work inside M-x shell. I don't think it matters, whether I use Cygwin or Cmd.exe for the child shell: plink -ssh -batch -pw mypassword user@domain.com This is less secure, as users can spy on `ps`, but that's not an issue on my single user machine. I'm not sure if this is a security problem on Windows in general, as I don't know of a way to look at command line args to running processes, even if I were to connect my machine in a public area, leave it logged in, and walk away, or allow Administrators to snoop (via e.g. RDP), for that matter. As far as Emacs versions: It looks that I was using native Emacs. This is the only binary widely distributed. I could not find a version of Emacs, which runs on the w32 desktop, yet supports Cygwin. I did discover that running the Cygwin Emacs package inside the Cygwin shell does work. There is still an annoying bug, where Cygwin Emacs does not recognize C-x C-c to quit Emacs, and I must use the F10/M-' menu. This is a bug in the port of Emacs to Cygwin. The version of XEmacs I work with, runs on the w32 desktop, but is compiled with Cygwin. Finally, I tried plink under both Cygwin & cmd shells, and it recognized my password the first time. Thus, M-x shell in Windows is making some kind of change to my password. Jason Rumney wrote: > Bruce Ingalls writes: > >>I am trying to get TRAMP to work under w32. >>Note that Linux works fine for me. >> >>I tried executing M-x shell, then ssh. >>This fails, with the error >>Pseudo-terminal will not be allocated because stdin is not a terminal. >> >>Why am I getting this error, and what can I do about it? > > You are getting the error because the version of ssh you are using > expects a certain method of faking Unix pttys (I could take a wild > guess here and say that you're using a Cygwin port of ssh). > > You could try using an alternative ssh client. plink (the putty > command-line client) seems like it could work if you can get comint > to recognize the passphrase prompt. > >>I do not have these shell problems with w32 XEmacs. > > Cygwin version? 1.3.22 - Everything is latest binary release