From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joseph Kiniry Newsgroups: gmane.emacs.help Subject: Re: ssh in emacs shell in OS X Date: Fri, 29 Aug 2003 10:51:26 +0200 Organization: Computing Science Institute, University of Nijmegen Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <5d2d72f0.0308280740.56b0c2af@posting.google.com> <84vfshft75.fsf@slowfox.is.informatik.uni-duisburg.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1062147826 7940 80.91.224.253 (29 Aug 2003 09:03:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2003 09:03:46 +0000 (UTC) Cc: david , Kai =?iso-8859-1?q?Gro=DFjohann , ?= Pascal Bourguignon Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 29 11:03:44 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19sfAW-0006RI-00 for ; Fri, 29 Aug 2003 11:03:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19sfAI-00078U-GC for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Aug 2003 05:03:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!news2.euro.net!newsfeed.multikabel.nl!surfnet.nl!kun.nl!wnnews.sci.kun.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: kind.cs.kun.nl Original-X-Trace: wnnews.sci.kun.nl 1062147086 5760 131.174.33.98 (29 Aug 2003 08:51:26 GMT) Original-X-Complaints-To: usenet@sci.kun.nl Original-NNTP-Posting-Date: Fri, 29 Aug 2003 08:51:26 +0000 (UTC) X-Image-Url: http://kind.cs.kun.nl/~kiniry/graphics/jrk-8.99.jpg X-Url: http://www.cs.kun.nl/~kiniry/ Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUHBweM jIxMTEzLy8srKyuurq5sbGzj4+MzrGd6AAAAAWJLR0QAiAUdSAAAAjVJREFU eJxNU0tT4zAMDqyZvWKK0ysJbu4gjK9uqul5g6tyJSVkf4Cnm7+/ct5qO+Pq y/eQ7SQumUoIMS5cgsWqjQ6fxnWS4NQ/KvLdVS9PjYsMwNque52FB1Vx5Gas mTIBm26sc7IucWcnIDRrAA8TEOANl/yJ++zmescV465b1ceCiN9r4J9etJ7X AJTLLH/XQBCLx3ZuBv5938+htjYMKhbi93EGPIQwTMEbBnCZPSBAGAlgQ6hm j+/YgQhDZzujpljuGQYN4L4Bo2apXzBUxFIFNDHEYe6bc+u9/5qQGzIm6gSg oq59d5q1fryP3oaqttlY+DPH2hH5EECq6pEJYQEOxEomLVSleGXPxdfQ3wN7 mIcsU34XH9mWD4P9XhnwyutMDvHedqj74zpuyJP8wFraEGNfc8z7e1QScaJW coTOeJ4HEfudFDtvgMDzp7t6Cxax7C+1yHyvTYb3nxm+wfG2730c3X5SnJ7r xJQeKDeBZ/fExQENnQTiuCdAcb/oLFNZezq5CbiVUsUpX9K6OsoITHclzzOe 2b/Ta0by5X5i8Ix4JMNTphflqWoWoCyR5ztfFKVEEp0bABS6xJ0kdkgzUrWb GFjyJmg+jg2lysg6GRmcmiF9I+UP8Sk+NG5MFYFYlzpTJOWlEePrXPZtLQq9 r86t3jshBqlbrSMiXK05XfElklEqx97E4VHmWOaOvQdGT+j12rzNtXNjKqEH 75ihaHXCFr2HEA2ffS/FxX8ZYZP/TE/Y07oj8zQAAAAASUVORK5CYII= X-Face: 9X:!41!x9hOT+cJU.gb=hXxEm6v)ZczE-':_8mlM-7^G!j%2$QC00w?G "x_1ZnY3[!+gGQD.6%=0EMBt[m|kdKsr*m=3J&r(#is5]J>&eVWNy-h^DrtO_5jES gK6NFKoj%c=+E?*%+\S$Rn7Y|mT(a~1Y{[$MZR[8~(bK[P4]RM2E<"5:n|2Gm!V

7aWw 9+K|b{`Ou,uYaNn(`QDDR 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 Xref: main.gmane.org gmane.emacs.help:12162 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12162 kai.grossjohann@gmx.net (Kai Großjohann) writes: > dfphil@yahoo.com (david) writes: > >> After some Googling, I tried to get ssh working from an emacs shell. >> This also fails. After typing M-x shell and receiving a bash shell, I >> type: >> bash-2.05b$ ssh me@host >> and emacs replies with >> Pseudo-terminal will not be allocated because stdin is not a >> terminal >> ssh_askpass: exec(/sw/lib/ssh-askpass): No such file or >> directory >> Write failed: Broken pipe >> I get a corresponding error when I use the OS X default ssh. It looks >> for askpass in a different directory and doesn't find it there, >> either. > > Ah, the infamous process-connection-type problem. Under OS X, > process-connection-type is set to nil, but then Tramp doesn't work. > I think that some people have tried setting it to t, and at least > their computer didn't blow up. But I don't know what other bad side > effects this setting had. > > Another possibility might be to use the sshx method. It invokes "ssh > -t -t". The double "-t" argument is an undocumented ssh-on-Windows > (mis?)feature to force it to alloc a pty. Maybe it also works on OS X? I have successfully gotten Tramp to work with a fink-built FSF Emacs under OS X by using a process-connection-type of nil and a Tramp connection method of sshx. It was not necessary modify the stock definition of sshx. I use SSH Agent (http://www.phil.uu.nl/~xges/ssh/) to handle ssh proxy authentication so that ssh-askpass/ssh-add is never in the loop. Joe -- Joseph R. Kiniry ID 78860581 ICQ 4344804 SOS Group, University of Nijmegen http://www.cs.kun.nl/~kiniry/ KindSoftware, LLC http://www.kindsoftware.com/ Board Chair: NICE http://www.eiffel-nice.org/