unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17900: 24.4.50; Tramp Does not recognize .ssh/config file
@ 2014-07-02 14:15 Ram Balachandran
  2014-07-02 14:40 ` Michael Albinus
  0 siblings, 1 reply; 7+ messages in thread
From: Ram Balachandran @ 2014-07-02 14:15 UTC (permalink / raw)
  To: 17900


I'm trying to open server files through tramp where the server login. I
created a .ssh/config file to set ControlMaster to 'auto'. However this
file is not recognized by Emacs in Tramp mode which asks me to provide
login credentials again. The tramp mode gets hung if rsa token id is
required as part of login credentials. 



In GNU Emacs 24.4.50.1 (x86_64-apple-darwin13.2.0, NS appkit-1265.20 Version 10.9.3 (Build 13D65))
of 2014-06-29 on builder10-9.porkrind.org
Windowing system distributor `Apple', version 10.3.1265
Configured using:
`configure --with-ns'

Configured features:
ACL ZLIB

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

Major mode: Fundamental

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-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
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t

Recent input:
<return> <down-mouse-1> <mouse-1> <help-echo> <down-mouse-1> 
<mouse-1> ~ / m <tab> <tab> y <tab> D <tab> <tab> v 
a <tab> P O S <tab> <return> <help-echo> <down-mouse-1> 
<mouse-1> C-x C-f <backspace> <backspace> / s s h : 
j a n a r c s @ f l u x - l o g i n : <return> <down-mouse-1> 
<mouse-1> <menu-bar> <buffer> C-a <down-mouse-1> <mouse-1> 
C-x C-f <help-echo> <help-echo> <menu-bar> <buffer> 
C-a C-x C-f v a <tab> P O T <tab> <return> <wheel-down> 
<double-wheel-down> <wheel-up> <double-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <wheel-down> <double-wheel-down> 
<triple-wheel-down> <wheel-up> <double-wheel-up> <triple-wheel-up> 
<triple-wheel-up> C-x C-f <tab> v a <tab> K P O <tab> 
<return> <help-echo> <help-echo> <menu-bar> <buffer> 
C-a <down-mouse-1> <mouse-1> <up> C-x C-f v r h f i 
n <down-mouse-1> <mouse-1> <help-echo> C-g C-s <help-echo> 
<down-mouse-1> <mouse-1> <help-echo> <help-echo> C-s 
C-s C-g v r h f i n C-r C-r C-s C-s C-s C-s C-s <wheel-down> 
<double-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <wheel-down> <double-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <wheel-up> 
<double-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <wheel-down> <wheel-down> <double-wheel-down> 
<triple-wheel-down> <wheel-up> <double-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <down-mouse-1> <mouse-1> <wheel-down> 
<double-wheel-down> <triple-wheel-down> <wheel-up> 
<double-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <down-mouse-1> <mouse-1> <return> 
<return> <up> <up> # 3 <backspace> # <down> <up> SPC 
<down> # # SPC W h y SPC c e r t a i n SPC M g SPC 
a t o m s SPC a r e SPC a l l o w e d SPC t o SPC r 
e l a x ? <return> # # SPC C-x C-s <down-mouse-1> <mouse-1> 
M-x r e p o r <tab> <return>

Recent messages:
Tramp: Inserting `/ssh:rbala@hopper.nersc.gov:/global/homes/r/rbala/myDocuments/vasp_sample_KPOINTS'...done
Quit
completing-read-default: Command attempted to use minibuffer while in minibuffer
Mark saved where search started
byte-code: Beginning of buffer [8 times]
Saving file /ssh:rbala@hopper.nersc.gov:/global/homes/r/rbala/myDocuments/vasp_sample_POSCAR...
Renaming /ssh:rbala@hopper.nersc.gov:/global/homes/r/rbala/myDocuments/vasp_sample_POSCAR to /ssh:rbala@hopper.nersc.gov:/global/homes/r/rbala/myDocuments/vasp_sample_POSCAR~...done
Tramp: Encoding local file `/var/folders/1z/m88tdd_n49gdrdh0tyxflsd80000gq/T/tramp.7132G-j' using `(lambda (beg end) (let ((coding-system-for-write (quote binary)) (coding-system-for-read (quote binary))) (apply (quote call-process-region) beg end (car (split-string gzip)) t t nil (cdr (split-string gzip)))) (base64-encode-region (point-min) (point-max)))'...done
Tramp: Decoding remote file `/ssh:rbala@hopper.nersc.gov:/global/homes/r/rbala/myDocuments/vasp_sample_POSCAR' using `(base64 -d -i | gzip -d >%s)'...done
Wrote /ssh:rbala@hopper.nersc.gov:/global/homes/r/rbala/myDocuments/vasp_sample_POSCAR

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils misearch
multi-isearch tramp-cmds tramp-sh tramp-cache tramp tramp-compat
auth-source eieio eieio-core gnus-util mm-util mail-prsvr password-cache
tramp-loaddefs trampver shell org byte-opt bytecomp byte-compile cconv
advice help-fns org-macro org-footnote org-pcomplete pcomplete org-list
org-faces org-entities noutline outline easy-mmode org-version
ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp
ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs
org-loaddefs format-spec find-func cal-menu easymenu calendar
cal-loaddefs package time-date tooltip electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process cocoa ns
multi-tty emacs)

Memory information:
((conses 16 143131 7277)
(symbols 48 25389 0)
(miscs 40 141 234)
(strings 32 36683 4857)
(string-bytes 1 1157104)
(vectors 16 18570)
(vector-slots 8 532285 5529)
(floats 8 409 438)
(intervals 56 336 0)
(buffers 960 18))





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17900: 24.4.50; Tramp Does not recognize .ssh/config file
  2014-07-02 14:15 bug#17900: 24.4.50; Tramp Does not recognize .ssh/config file Ram Balachandran
@ 2014-07-02 14:40 ` Michael Albinus
  2014-07-03 13:45   ` Janakiraman Balachandran
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Albinus @ 2014-07-02 14:40 UTC (permalink / raw)
  To: Ram Balachandran; +Cc: 17900

Ram Balachandran <janarcs@umich.edu> writes:

> I'm trying to open server files through tramp where the server login. I
> created a .ssh/config file to set ControlMaster to 'auto'. However this
> file is not recognized by Emacs in Tramp mode which asks me to provide
> login credentials again. The tramp mode gets hung if rsa token id is
> required as part of login credentials. 

Tramp uses own settings of ControlMaster and ControlPath. If you want to
use the default values, apply (setq tramp-use-ssh-controlmaster-options nil)

See (info "(tramp) Frequently Asked Questions")

Best regards, Michael.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17900: 24.4.50; Tramp Does not recognize .ssh/config file
  2014-07-02 14:40 ` Michael Albinus
@ 2014-07-03 13:45   ` Janakiraman Balachandran
  2014-07-03 14:36     ` Michael Albinus
  0 siblings, 1 reply; 7+ messages in thread
From: Janakiraman Balachandran @ 2014-07-03 13:45 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 17900

[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]

Hi Michael

Thank you for the reply. The tramp in Emacs default package for Mac worked
fine in identifying the ~/.ssh/config file. Even gnu FAQ gives examples of
how to modify this file to modify tramp connections (
https://www.gnu.org/software/emacs/manual/html_node/tramp/Frequently-Asked-Questions.html
).

This is the problem that I face due to installing one of the nightly
releases (I had to do this because the default package was crashing
continuously). The main trouble is the double validation (RSA Token id
+passwd) that I need to provide to connect to server files. Tramp does not
prompt me to input the token id and fails after trying to connect with the
server.



Best Regards
Ram Balachandran
Research Assistant
Computational Material Physics Group
Dept. of Mechanical Engg, Univ of Michigan
 <http://www.linkedin.com/in/rambalachandran>
<https://twitter.com/RamBalachandran>


On Wed, Jul 2, 2014 at 10:40 AM, Michael Albinus <michael.albinus@gmx.de>
wrote:

> Ram Balachandran <janarcs@umich.edu> writes:
>
> > I'm trying to open server files through tramp where the server login. I
> > created a .ssh/config file to set ControlMaster to 'auto'. However this
> > file is not recognized by Emacs in Tramp mode which asks me to provide
> > login credentials again. The tramp mode gets hung if rsa token id is
> > required as part of login credentials.
>
> Tramp uses own settings of ControlMaster and ControlPath. If you want to
> use the default values, apply (setq tramp-use-ssh-controlmaster-options
> nil)
>
> See (info "(tramp) Frequently Asked Questions")
>
> Best regards, Michael.
>

[-- Attachment #2: Type: text/html, Size: 5867 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17900: 24.4.50; Tramp Does not recognize .ssh/config file
  2014-07-03 13:45   ` Janakiraman Balachandran
@ 2014-07-03 14:36     ` Michael Albinus
  2014-07-11 13:18       ` Michael Albinus
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Albinus @ 2014-07-03 14:36 UTC (permalink / raw)
  To: Janakiraman Balachandran; +Cc: 17900

Janakiraman Balachandran <janarcs@umich.edu> writes:

> Hi Michael

Hi Ram,

> The main trouble is the double validation (RSA Token id +passwd) that
> I need to provide to connect to server files. Tramp does not prompt me
> to input the token id and fails after trying to connect with the
> server.

I suspect that Tramp is not recognizing the prompt from ssh, asking for
the token. Or Tramp does not recognize that there are two different
passwords, and reuses the first entered one.

Could you, please, perform (setq tramp-verbose 10) prior to connecting
the server? There will be a resulting Tramp debug buffer, which will
tell us what's up.

Tramp is eager to NOT dump password strings into the traces, but better
you double-check the traces before publishing. You could send them to me
off-list.

> Best Regards
> Ram Balachandran

Best regards, Michael.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17900: 24.4.50; Tramp Does not recognize .ssh/config file
  2014-07-03 14:36     ` Michael Albinus
@ 2014-07-11 13:18       ` Michael Albinus
       [not found]         ` <CANNWYmkAVb0ckenEWhwv1yEdt4h0tv9Y1CSKQwAE-vs-1xiP6A@mail.gmail.com>
  2015-09-20  8:18         ` Michael Albinus
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Albinus @ 2014-07-11 13:18 UTC (permalink / raw)
  To: Janakiraman Balachandran; +Cc: 17900

Michael Albinus <michael.albinus@gmx.de> writes:

> Janakiraman Balachandran <janarcs@umich.edu> writes:
>
>> Hi Michael

Hi Ram,

>> The main trouble is the double validation (RSA Token id +passwd) that
>> I need to provide to connect to server files. Tramp does not prompt me
>> to input the token id and fails after trying to connect with the
>> server.
>
> I suspect that Tramp is not recognizing the prompt from ssh, asking for
> the token. Or Tramp does not recognize that there are two different
> passwords, and reuses the first entered one.

I'm a little bit lost. Do yo still have a problem? Or shall we close
this bug?

>> Best Regards
>> Ram Balachandran

Best regards, Michael.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17900: 24.4.50; Tramp Does not recognize .ssh/config file
       [not found]             ` <CANNWYm=_RbiS12v32JOREkoBShmGNbW5KaY3v7f5-_XDBq0VKg@mail.gmail.com>
@ 2014-07-16 11:52               ` Michael Albinus
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Albinus @ 2014-07-16 11:52 UTC (permalink / raw)
  To: Janakiraman Balachandran, 17900

Janakiraman Balachandran <janarcs@umich.edu> writes:

Hi Ram,

> I will be extremely glad to test it for you. Have a good day ahead
>
> On Jul 13, 2014 5:29 AM, "Michael Albinus" <michael.albinus@gmx.de>
> wrote:
>     
>     I keep the bug open. If time permits, I'll start to implement
>     multi-factor authentication in Tramp, plus a mechanism for
>     suppressing
>     the password cache (not useful for password tokens). Then I'll
>     come back
>     to you for testing :-)

I've checked the archive. In <http://article.gmane.org/gmane.emacs.tramp/7694>,
the problem with multi-factor authentication was already
discussed. Could you try this recipe?

Your problem with ssh's ControlPath shall be fixed by setting
`tramp-use-ssh-controlmaster-options' to nil, as I wrote in  a previous
message.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#17900: 24.4.50; Tramp Does not recognize .ssh/config file
  2014-07-11 13:18       ` Michael Albinus
       [not found]         ` <CANNWYmkAVb0ckenEWhwv1yEdt4h0tv9Y1CSKQwAE-vs-1xiP6A@mail.gmail.com>
@ 2015-09-20  8:18         ` Michael Albinus
  1 sibling, 0 replies; 7+ messages in thread
From: Michael Albinus @ 2015-09-20  8:18 UTC (permalink / raw)
  To: Janakiraman Balachandran; +Cc: 17900-done

Michael Albinus <michael.albinus@gmx.de> writes:

>>> The main trouble is the double validation (RSA Token id +passwd) that
>>> I need to provide to connect to server files. Tramp does not prompt me
>>> to input the token id and fails after trying to connect with the
>>> server.
>>
>> I suspect that Tramp is not recognizing the prompt from ssh, asking for
>> the token. Or Tramp does not recognize that there are two different
>> passwords, and reuses the first entered one.
>
> I'm a little bit lost. Do yo still have a problem? Or shall we close
> this bug?

I'm closing the bug; there was no response for more than a year.

>>> Best Regards
>>> Ram Balachandran

Best regards, Michael.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-09-20  8:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-02 14:15 bug#17900: 24.4.50; Tramp Does not recognize .ssh/config file Ram Balachandran
2014-07-02 14:40 ` Michael Albinus
2014-07-03 13:45   ` Janakiraman Balachandran
2014-07-03 14:36     ` Michael Albinus
2014-07-11 13:18       ` Michael Albinus
     [not found]         ` <CANNWYmkAVb0ckenEWhwv1yEdt4h0tv9Y1CSKQwAE-vs-1xiP6A@mail.gmail.com>
     [not found]           ` <87zjgdvc77.fsf@gmx.de>
     [not found]             ` <CANNWYm=_RbiS12v32JOREkoBShmGNbW5KaY3v7f5-_XDBq0VKg@mail.gmail.com>
2014-07-16 11:52               ` Michael Albinus
2015-09-20  8:18         ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).