GNU bug report logs - #43250
28.0.50; tramp ignores .ssh/config

Previous Next

Package: emacs;

Reported by: sds <at> gnu.org

Date: Sun, 6 Sep 2020 22:09:02 UTC

Severity: normal

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43250 in the body.
You can then email your comments to 43250 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#43250; Package emacs. (Sun, 06 Sep 2020 22:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to sds <at> gnu.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 06 Sep 2020 22:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sam Steingold <sds <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; tramp ignores .ssh/config
Date: Sun, 06 Sep 2020 18:08:18 -0400
I have ~/.ssh/config that says

--8<---------------cut here---------------start------------->8---
Host            fence
HostName        fencepost.gnu.org

Host            *
Compression     yes
ForwardAgent    yes
ForwardX11      no
User            sds
VisualHostKey   no
GSSAPIDelegateCredentials yes
--8<---------------cut here---------------end--------------->8---

so I can do `ssh fence` from shell just fine.

Until recently I could also do

--8<---------------cut here---------------start------------->8---
(copy-file "/scp:fence:~/.newsrc" "~/.newsrc")
--8<---------------cut here---------------end--------------->8---

using tramp, but now I am getting this weird question

--8<---------------cut here---------------start------------->8---
scp user name for fence (default sam.steingold): 
--8<---------------cut here---------------end--------------->8---

with this stack:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (quit "")
  signal(quit (""))
  tramp-signal-hook-function(quit (""))
  signal(quit (""))
  tramp-maybe-open-connection((tramp-file-name "scp" nil nil "fence" nil "~/.newsrc" nil))
  tramp-send-command((tramp-file-name "scp" nil nil "fence" nil "~/.newsrc" nil) "cd ~ && pwd")
  tramp-sh-handle-expand-file-name("/scp:fence:~/.newsrc" nil)
  apply(tramp-sh-handle-expand-file-name ("/scp:fence:~/.newsrc" nil))
  tramp-sh-file-name-handler(expand-file-name "/scp:fence:~/.newsrc" nil)
  apply(tramp-sh-file-name-handler expand-file-name ("/scp:fence:~/.newsrc" nil))
  tramp-file-name-handler(expand-file-name "/scp:fence:~/.newsrc" nil)
  file-symlink-p("/scp:fence:~/.newsrc")
  file-chase-links("/scp:fence:~/.newsrc")
...
--8<---------------cut here---------------end--------------->8---

This looks like a newly introduced bug.
Thank you.


In GNU Emacs 28.0.50 (build 8, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.6 (Build 19G2021))
 of 2020-08-31 built on BZ-C02XR5CGJG5L
Repository revision: 04578c10636fbbd1c1a924404a955eb37ffefd8f
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.6

Configured using:
 'configure --with-imagemagick --with-mailutils --with-ns
 PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/jansson/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libjpeg/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig'

Configured features:
JPEG TIFF PNG IMAGEMAGICK NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LANG: C
  locale-coding-system: utf-8-unix

Major mode: Debugger

Minor modes in effect:
  pyvenv-mode: t
  shell-dirtrack-mode: t
  global-edit-server-edit-mode: t
  winner-mode: t
  which-function-mode: t
  show-paren-mode: t
  desktop-save-mode: t
  url-handler-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t

Load-path shadows:
None found.

Features:
(shadow sort bbdb-message mailalias cookie1 mail-extr gnus-msg gnus-art
mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr kinsoku svg dom
gnus-group gnus-undo emacsbug sendmail cl-print debug backtrace
find-func conf-mode misearch multi-isearch gnus-start gnus-dbus dbus xml
gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int
gnus-range message rfc822 mml mml-sec epa derived epg epg-config
mm-decode mm-bodies mm-encode gmm-utils mailheader gnus-win dabbrev
network-stream url-http mail-parse rfc2231 url-gw nsm rmc puny url-cache
url-auth clhs url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util mailcap skeleton tramp-cmds
markdown-mode rx color noutline outline tramp-cache cal-move cal-x view
cal-china cal-bahai cal-islam holidays hol-loaddefs bbdb-anniv cal-iso
cal-hebrew lunar cal-julian solar cal-dst appt diary-lib diary-loaddefs
cal-menu calendar cal-loaddefs add-log remember tex-mode sh-script smie
executable flyspell ispell make-mode company-oddmuse company-keywords
company-etags company-gtags company-dabbrev-code company-dabbrev
company-files company-clang company-template company-cmake company-bbdb
yasnippet-snippets cl-extra yasnippet flymake-proc flymake thingatpt
company-capf company pcase help-fns radix-tree help-mode elpy edmacro
kmacro elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io
esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile
elpy-django s elpy-refactor ido grep compile etags fileloop generator
xref project cus-edit python tramp-sh tramp tramp-loaddefs trampver
tramp-integration files-x tramp-compat shell pcomplete parse-time
iso8601 ls-lisp format-spec comint ansi-color vc-git diff-mode
easy-mmode vc-dir ewoc vc vc-dispatcher dired-aux dired dired-loaddefs
midnight warnings gnus nnheader gnus-util rmail rmail-loaddefs rfc2047
rfc2045 ietf-drums text-property-search time-date mail-utils mm-util
mail-prsvr wid-edit bbdb-mua bbdb-com crm mailabbrev bbdb bbdb-site
timezone edit-server advice server winner ring which-func imenu paren
help-at-pt desktop frameset cus-start cus-load info package easymenu
browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core
cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq
byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win
ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
elisp-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads kqueue cocoa ns
lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 385411 16621)
 (symbols 48 27965 4)
 (strings 32 208578 4330)
 (string-bytes 1 5400862)
 (vectors 16 68275)
 (vector-slots 8 1027008 32437)
 (floats 8 890 431)
 (intervals 56 3122 213)
 (buffers 992 56))

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1894
http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com
http://think-israel.org https://www.peaceandtolerance.org/
Incorrect time synchronization.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43250; Package emacs. (Mon, 07 Sep 2020 08:42:02 GMT) Full text and rfc822 format available.

Message #8 received at 43250 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Sam Steingold <sds <at> gnu.org>
Cc: 43250 <at> debbugs.gnu.org
Subject: Re: bug#43250: 28.0.50; tramp ignores .ssh/config
Date: Mon, 07 Sep 2020 10:41:00 +0200
Sam Steingold <sds <at> gnu.org> writes:

Hi Sam,

> This looks like a newly introduced bug.

I've tried to reproduce the problem. I have modified my .ssh/config to

--8<---------------cut here---------------start------------->8---
Host fence
HostName	fencepost.gnu.org

Host            *
Compression     yes
ForwardAgent    yes
ForwardX11      no
User            sds
VisualHostKey   no
#GSSAPIDelegateCredentials yes
--8<---------------cut here---------------end--------------->8---

User "sds" is invalid in my case :-) Then I have applied

--8<---------------cut here---------------start------------->8---
(copy-file "/scp:fence:~/.forward" "~/.forward")
--8<---------------cut here---------------end--------------->8---

This fails with

--8<---------------cut here---------------start------------->8---
sds <at> fencepost.gnu.org: Permission denied (publickey).
--8<---------------cut here---------------end--------------->8---

as expected. What happens, if you call from your shell

--8<---------------cut here---------------start------------->8---
# ssh -o ControlMaster=auto -o ControlPath='tramp.%C' \
  -o ControlPersist=no -e none fence
--8<---------------cut here---------------end--------------->8---

> Thank you.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43250; Package emacs. (Wed, 27 Jan 2021 06:24:02 GMT) Full text and rfc822 format available.

Message #11 received at 43250 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Sam Steingold <sds <at> gnu.org>, 43250 <at> debbugs.gnu.org
Subject: Re: bug#43250: 28.0.50; tramp ignores .ssh/config
Date: Wed, 27 Jan 2021 07:23:02 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

> as expected. What happens, if you call from your shell
>
> # ssh -o ControlMaster=auto -o ControlPath='tramp.%C' \
>   -o ControlPersist=no -e none fence

More information was requested, but no response was given within a few
months, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 43250 <at> debbugs.gnu.org and sds <at> gnu.org Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 27 Jan 2021 06:24:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 24 Feb 2021 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 60 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.