unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40820: 28.0.50; vc: vc-push requires ssh-askpass to enter key password
@ 2020-04-24 14:24 Fredrik Nyqvist
  2020-10-22 14:49 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Nyqvist @ 2020-04-24 14:24 UTC (permalink / raw)
  To: 40820


0. To get the error message at step 6, make sure that ssh-askpass is
not installed on the system.
1. Start Emacs emacs -Q
2. Edit a version controlled file (in this case git is used)
3. Do vc-next-action (C-x v v)
4. Enter a commit message and then press: C-c C-c
5. Try to push the file: C-x v P
6. Emacs now tries to launch ssh-askpass to enter the password. An error
message will be shown if ssh-askpass is not installed on the system:

ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

Should ssh-askpass really be needed by vc? When pushing a commit from a
shell or eshell buffer it is possible to enter the password without the
use of ssh-askpass, instead the password is entered from the
minibuffer.

Can the same be used by VC?


In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0)
 of 2020-04-19 built on gnu
Repository revision: 65990f47ccd6f1a3558910d71701a6f029c35433
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)

Configured using:
 'configure --with-gconf --with-xml2'

Configured features:
XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM MODULES THREADS PDUMPER GMP

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





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

* bug#40820: 28.0.50; vc: vc-push requires ssh-askpass to enter key password
  2020-04-24 14:24 bug#40820: 28.0.50; vc: vc-push requires ssh-askpass to enter key password Fredrik Nyqvist
@ 2020-10-22 14:49 ` Lars Ingebrigtsen
  2020-10-27 20:05   ` Fredrik Nyqvist
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-22 14:49 UTC (permalink / raw)
  To: Fredrik Nyqvist; +Cc: 40820

Fredrik Nyqvist <fredn@posteo.net> writes:

> 0. To get the error message at step 6, make sure that ssh-askpass is
> not installed on the system.
> 1. Start Emacs emacs -Q
> 2. Edit a version controlled file (in this case git is used)
> 3. Do vc-next-action (C-x v v)
> 4. Enter a commit message and then press: C-c C-c
> 5. Try to push the file: C-x v P
> 6. Emacs now tries to launch ssh-askpass to enter the password. An error
> message will be shown if ssh-askpass is not installed on the system:
>
> ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

I don't think Emacs calls ssh-askpass directly -- it just leaves all
that stuff up to the OS setup, I think?

In any case, I was unable to reproduce this on Debian, presumably
because there's a lot of passphrase caching going on.  Without it I'm
just getting:

Running "git push"...
git@github.com: Permission denied (publickey).^M
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

So do you have a more complete recipe for how to reproduce this bug?

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





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

* bug#40820: 28.0.50; vc: vc-push requires ssh-askpass to enter key password
  2020-10-22 14:49 ` Lars Ingebrigtsen
@ 2020-10-27 20:05   ` Fredrik Nyqvist
  2020-10-28  9:22     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Nyqvist @ 2020-10-27 20:05 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 40820


> I don't think Emacs calls ssh-askpass directly -- it just leaves all
> that stuff up to the OS setup, I think?
> 
> In any case, I was unable to reproduce this on Debian, presumably
> because there's a lot of passphrase caching going on.  Without it I'm
> just getting:
> 
> Running "git push"...
> git@github.com: Permission denied (publickey).^M
> fatal: Could not read from remote repository.
> 
> Please make sure you have the correct access rights
> and the repository exists.
> 
> So do you have a more complete recipe for how to reproduce this bug?

OK, I see. I am also running Debian but I have not found out how the
system is setup to use ssh-askpass in my case. So unfortunately I do not
know how to show a complete recipie for this.

If the problem is because of how I have setup my system I think this
issue can be closed.

Thanks,
Fredrik





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

* bug#40820: 28.0.50; vc: vc-push requires ssh-askpass to enter key password
  2020-10-27 20:05   ` Fredrik Nyqvist
@ 2020-10-28  9:22     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-28  9:22 UTC (permalink / raw)
  To: Fredrik Nyqvist; +Cc: 40820

Fredrik Nyqvist <fredn@posteo.net> writes:

> If the problem is because of how I have setup my system I think this
> issue can be closed.

OK, sounds like it may be difficult to make progress here, so I'm
closing this bug report.  If more progress can be made, please respond
to the debbugs address and we'll reopen.

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





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

end of thread, other threads:[~2020-10-28  9:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-24 14:24 bug#40820: 28.0.50; vc: vc-push requires ssh-askpass to enter key password Fredrik Nyqvist
2020-10-22 14:49 ` Lars Ingebrigtsen
2020-10-27 20:05   ` Fredrik Nyqvist
2020-10-28  9:22     ` Lars Ingebrigtsen

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).