From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: cannot ssh edit a file Date: Mon, 22 Feb 2021 11:45:12 -0500 Message-ID: References: <87im6lqvzo.fsf@gmx.de> <87eeh8qyz3.fsf@gmx.de> <87a6rwqh0h.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40764"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Michael Albinus To: Luca Ferrari Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 22 17:46:37 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEEM1-000AUs-I4 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 17:46:37 +0100 Original-Received: from localhost ([::1]:59388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEEM0-0006HV-J8 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 11:46:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEELP-0006HM-1J for help-gnu-emacs@gnu.org; Mon, 22 Feb 2021 11:45:59 -0500 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:35199) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEELM-0007ix-VH for help-gnu-emacs@gnu.org; Mon, 22 Feb 2021 11:45:58 -0500 Original-Received: by mail-wr1-x42a.google.com with SMTP id l12so19787770wry.2 for ; Mon, 22 Feb 2021 08:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=thoDceGghdCtMK/eiTDanLTLJX5d/89gVfb1N+1FYlg=; b=o0vFY1R+3s8qcGGnu5yLWEYma3C3SohVWStjy1IA97DrPxkOOYBR4DWQ49xwnBz4TY Kn7YVrhKwnVCB471WxTZXZU37F58+Lr46IViz2Z5rXdqZi1zT53kLg++t6OLt6wcVDFr m1e3m8kefqBu3kntnjXhXaorFt3I7C3XVxdWvmEruWmyd3De9YMlFcgiELtC3uAzeZTJ rIb7Gm1+C0PvBafza2cljLkVbImcCJ7qHkrNO9iNLUxmdoEVpcCskcTk700Uwu1ovMuF 4f87Q8mSbaH0vw0mk1BjlMAttqIuSCfFwrAUZS3/n16CY5Ssqx1XpHD1tyhsWtmWeYAJ JOxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=thoDceGghdCtMK/eiTDanLTLJX5d/89gVfb1N+1FYlg=; b=bSrblYJuN52IiJVPdKQ/DYoltm9sTSKBPWZvgW3uBI9SMYPr60WM65CCezj30qfCfi 2tIk02zao+pQnbMBspApX2d3WNZ3gxWfBTjnwlVvqHu/aBOiWtFZdyYqALWA3oanw0ql SLxHovmbFnk+uwlC0jZGcCOKse5+lCEMaIhlPp/RAYQ070hJSwR3uoOiDF9zp91RFhPt huWp8NGsoMc3nZV9rOs0+vKbXvrR37Zj8ANh+6Gy3UeIQp2Tud+wAjmoKIXa1rFc7646 qAYkryE3sDUfY5FsFb0hhv5x3NjexzaTUp/I6+Z32ajh0lU6n/Zj2DDsKNeSxTIm9j/8 lJLQ== X-Gm-Message-State: AOAM53256FbjEicpnYdjMLmcBW9BT7lXUp+VEnDDBqMYI3glOKdGRe74 egPYrsrCXYM8hoIb6VoVyJhs7VNv2YOJho+2EyA= X-Google-Smtp-Source: ABdhPJydpk9m8gRyMBauoMIvP13u1U4RZxr7IBTPY+mF+aPTrR3i2LJhbFiBLr4MUZ1HIoHtczSdYjBWRMF3NMdbOi0= X-Received: by 2002:a5d:4749:: with SMTP id o9mr15352550wrs.225.1614012354535; Mon, 22 Feb 2021 08:45:54 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=tim.visher@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128200 Archived-At: On Mon, Feb 22, 2021 at 11:01 AM Luca Ferrari wrote: > On Mon, Feb 22, 2021 at 4:06 PM Michael Albinus > wrote: > > No. The traces do not seem to be produced with tramp-verbose 10. And > > they are not complete. > > I don't know exatly what you mean by complete, however I started emacs > as follows: > > % /opt/emacs/emacs26.3/bin/emacs -Q --eval '(setq tramp-verbose 10)' > > and ssh-ed into the machine. I waiting for many minutes, because Emacs > is frozen, then C-g and switched to the buffer. I attach the log. > Based on the log here it looks like you are connecting to `luca@miguel` and receiving back some odd text, namely: ``` 16:56:45.839707 tramp-accept-process-output (10) # *tramp/ssh luca@miguel* run nil Last login: Mon Feb 22 15:58:27 2021 from n261732 % [45mluca@miguel [49m [35m~ [37m % [39m [49m [?2004h ``` which I think indicates that whatever you did to correct your prompt on the remote machine isn't working. This is the exact command that TRAMP is using to attempt the connection: ``` ssh -l luca -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none miguel ``` Are you able to connect from a shell using that command?