flathub / flathub/com.visualstudio.code

Git integration: ssh_askpass not found

オープン
#23 コメント 11 件 リアクション 7 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
217
フォーク
82
平均マージ
1日 7時間
マージ済み PR(30日)
1

説明

*CC from the Microsoft/vscode repo*
*CC from the flathub/flathub repo*

### Issue Type
Bug

### Description

- Use Debian Stretch (GNOME + Wayland), everything up-to-date
- Use flatpak from Debian's repos
- Install VS Code using the package ~~(which appears to be officially)~~ distributed at flathub.org
- Start VS Code and try to use Git integration (anything, here `git pull` as an example) on a repo where you use SSH authentication with a SSH key protected by passphrase
- Error log (as a side note: `/usr/libexec/ssh-askpass` does indeed not exist)
```
git pull
ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
Permission denied (publickey).
fatal: Could not read from remote repository.

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

### Please note

- Error **not reproducible** in `gnome-terminal` (external)
- From global config: `"terminal.integrated.shell.linux": "/bin/bash"`
- Error **not reproducible** in integrated terminal (at least I get a prompt there to input my passphrase for my SSH key)
- SSH key is unlocked, so if I run `git pull` from `gnome-terminal` (external), I do not need to enter the passphrase
- In the integrated terminal I get asked for the passphrase for each command, so VS Code obviously cannot access the unlocked SSH keys (maybe because of the sandbox? I don't know if this can even be addressed...)
- In the integrated terminal, I do not have access to the commands `ssh-add` or similar. I thought I could just add the SSH key in the terminal to unlock it at least in the sandbox, but to no avail

### Expected behaviour

- I expect the same behaviour as in the `.deb` release where I do not need to unlock the keys and it "just works" out of the box

### VS Code Info

VS Code version: Code 1.20.1 (f88bbf9137d24d36d968ea6b2911786bfe103002, 2018-02-13T15:31:21.019Z)
OS version: Debian Stretch (Kernel: Linux x64 4.9.0-5-amd64)

System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz (8 x 3284)|
|Load (avg)|0, 0, 0|
|Memory (System)|15.59GB (0.24GB free) (`htop` says more than 11GB free)|
|Process Argv|/app/extra/vscode/code --extensions-dir=/home/usr/.var/app/com.visualstudio.code/data/vscode/extensions --reuse-window|
|Screen Reader|no|
|VM|0%|

Extensions (1)

Extension|Author (truncated)|Version
---|---|---
python|ms-|2018.1.0

Reproduces without extensions

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Reproduce the failure in the Flatpak Git integration using a passphrase-protected SSH key, comparing `git pull` in the integrated terminal with the external terminal. Investigate the `/usr/libexec/ssh-askpass` lookup and sandbox access to SSH agents; done means Git operations work without the reported missing-askpass error and match the `.deb` behavior.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
git, linux, shell
領域
desktop-dev, developer-experience
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。