From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.help Subject: Re: rlogin getting confused by ssh-askpass Date: Fri, 11 Jun 2004 09:07:01 +0900 Organization: FusionGOL - Global Online Japan Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87fz93lzyy.fsf@tc-1-100.kawasaki.gol.ne.jp> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088535584 17363 80.91.224.253 (29 Jun 2004 18:59:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 18:59:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 20:59:36 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfNpQ-0003jY-00 for ; Tue, 29 Jun 2004 20:59:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfNr5-00069D-S5 for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:01:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!63.223.4.70!c01.usenetserver.com!news.usenetserver.com!elnk-atl-nf1!newsfeed.earthlink.net!feed2.news.rcn.net!rcn!nntp.gol.com!203.216.70.8.MISMATCH!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: yokohama2-61-203-152-234.ap.0038.net Original-X-Trace: nnrp.gol.com 1086912421 17809 61.203.152.234 (11 Jun 2004 00:07:01 GMT) Original-X-Complaints-To: abuse@gol.com Original-NNTP-Posting-Date: Fri, 11 Jun 2004 00:07:01 +0000 (UTC) System-Type: i686-pc-linux-gnu Cancel-Lock: sha1:dawMXJ9T6beumvMJRG15Sro6nIo= Original-Xref: shelby.stanford.edu gnu.emacs.help:123741 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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 Xref: main.gmane.org gmane.emacs.help:19103 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19103 I must admit I was a bit confused by your message (:-) so I'm not sure my answer is relevant, but I think general to make ssh work well for a real login session you should (1) force emacs rlogin to use a PTY (with the `rlogin-process-connection-type' variable, and (2) force ssh to use one too (with the `-t' option). I use the following little function in my .emacs: (defun ssh (host &optional buffer-name) (interactive (list (read-from-minibuffer "SSH host: " nil nil nil 'ssh-history) current-prefix-arg)) (unless buffer-name (setq buffer-name (concat "*ssh-" host "*"))) (let ((rlogin-program "ssh") (rlogin-process-connection-type t) (init (not (comint-check-proc buffer-name)))) (rlogin (concat "-t " host " bash -i") buffer-name) ;; The following uses tramp to make emacs file-name completion in ;; the the remote shell buffer be correct -- but it's very slow ;; to start up, so it's disabled here: ;;(when init ;; (cd (concat "/" (user-login-name) "@" host ":"))) )) Note the comment at the end about tramp and the working directory. I also usually have handy little helper functions for each host I use, e.g., for fencepost.gnu.org, I have: (defun fp () (interactive) (ssh "fp.gnu.org" "fp")) So typing `M-x fp RET' gets me to the fencepost session... -Miles -- `Life is a boundless sea of bitterness'