tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unable to open a remote file


From: Michael Albinus
Subject: Re: unable to open a remote file
Date: Sun, 25 Jan 2015 20:00:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

rahed <address@hidden> writes:

> debug1: Failed to acquire GSS-API credentials for any mechanisms (No 
> credentials were supplied, or the credentials were unavailable or inaccessible
> Unknown code 0
> )

This looks like an attempt to use your local key, but it failed (w/o an
error) ...

> debug2: we did not send a packet, disable method
> debug3: authmethod_lookup publickey

... and continued to send a public key ...

> debug3: remaining preferred: keyboard-interactive,password
> debug3: authmethod_is_enabled publickey
> debug1: Next authentication method: publickey
> debug1: Trying private key: /export/home/adam/.ssh/identity
> debug3: no such identity: /export/home/adam/.ssh/identity
> debug1: Trying private key: /export/home/adam/.ssh/id_rsa
> debug3: no such identity: /export/home/adam/.ssh/id_rsa
> debug1: Trying public key: /export/home/adam/.ssh/id_dsa
> debug3: send_pubkey_test

... which also failed ...

> debug2: we sent a publickey packet, wait for reply
> debug1: Authentications that can continue: 
> gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
> debug2: we did not send a packet, disable method
> debug3: authmethod_lookup keyboard-interactive
> debug3: remaining preferred: password

... and it asked for a password.

> debug3: authmethod_is_enabled keyboard-interactive
> debug1: Next authentication method: keyboard-interactive
> debug2: userauth_kbdint
> debug2: we sent a keyboard-interactive packet, wait for reply
> debug2: input_userauth_info_req
> debug2: input_userauth_info_req: num_prompts 1
> Password :

Here it shall call ssh-askpass like in Tramp. Strange, that it
didn't. Was the shell you have used for test in the same X11 session as
Emacs?

What happens, if you call ssh in Tramp as well with -vvv? You need to
modify the respective entry in tramp-methods, like this:

--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/tramp/lisp/tramp-sh.el.~master~   2015-01-25 
20:56:30.000000000 +0200
--- /home/albinus/src/tramp/lisp/tramp-sh.el    2015-01-25 20:54:26.481313000 
+0200
***************
*** 206,212 ****
  (add-to-list 'tramp-methods
    '("sshx"
      (tramp-login-program        "ssh")
!     (tramp-login-args           (("-l" "%u") ("-p" "%p") ("%c")
                                 ("-e" "none") ("-t" "-t") ("%h") ("/bin/sh")))
      (tramp-async-args           (("-q")))
      (tramp-remote-shell         "/bin/sh")
--- 206,212 ----
  (add-to-list 'tramp-methods
    '("sshx"
      (tramp-login-program        "ssh")
!     (tramp-login-args           (("-vvv") ("-l" "%u") ("-p" "%p") ("%c")
                                 ("-e" "none") ("-t" "-t") ("%h") ("/bin/sh")))
      (tramp-async-args           (("-q")))
      (tramp-remote-shell         "/bin/sh")
--8<---------------cut here---------------end--------------->8---

Restart Emacs from scratch, and try.

> Regards

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]