mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2910] [ssh profiles] Cannot perform git operation via SSH #1817
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1817
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gjpin on GitHub (Aug 13, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2910
Hi there,
I've run into any issue with the ssh profile and git operations.
Setup:
Arch Linux
+
AppArmor
+
default profiles
+
firejail version 0.9.60
Compile time support:
- AppArmor support is enabled
- AppImage support is enabled
- chroot support is enabled
- file and directory whitelisting support is enabled
- file transfer support is enabled
- networking support is enabled
- overlayfs support is enabled
- private-home support is enabled
- seccomp-bpf support is enabled
- user namespace support is enabled
- X11 sandboxing support is enabled`
Steps to reproduce:
git clone git@github.com:netblue30/firejail.gitResult:
After removing ssh and ssh-agent profiles, as well as ssh symlink in /usr/local/bin, the operation proceeded as expected.
Thanks!
@rusty-snake commented on GitHub (Aug 18, 2019):
I doesn't have this issue, have you firejailed git?
What pw? pinetry?
@gjpin commented on GitHub (Aug 18, 2019):
Started over from a fresh install and couldn't reproduce the issue.
Must have had something else conflicting. Sorry for the false positive. Thanks
@alexpyattaev commented on GitHub (Dec 3, 2020):
Same issue here. I believe it has to do with kde SSH askpass GUI or similar, but either way allowing SSH to go through firejail breaks git.
The fix for me seems to be commenting these out:
#dbus-user none
#dbus-system none
@SkewedZeppelin commented on GitHub (Dec 3, 2020):
@alexpyattaev what distro are you on?
Fedora recently pushed a fix for broken connections to Debian servers.
https://src.fedoraproject.org/rpms/openssh/c/6a0769945432900cc01b395e5ba52cba33a2edee?branch=f33
@alexpyattaev commented on GitHub (Dec 16, 2020):
Hi, I am on archlinux. firejail version 0.9.64.
@CvBeijsterveldt commented on GitHub (Dec 22, 2020):
I'm experiencing the same issue on two different Arch Linux installations, both with KDE, since Firejail 0.9.64 (I didn't have the issue before). I'm using KeepassXC to add the SSH keys to the agent. This gives the following error whenever I try to do something with Git that requires repository access:
When I delete 'ssh' symlink from
/usr/local/bin/the issue is 'solved'. After just removing the KeepassXC profile the problem still persists. The fix that works for @alexpyattaev does not seem to work for me (when done to the SSH profile). Also, interestingly, this problem does not occur on a Pinebook Pro running Manjaro Linux with the same setup (i.e. also using the same KeepassXC database and SSH-agent configuration).Please let me know if I can do anything to provide more info.
@CvBeijsterveldt commented on GitHub (Dec 24, 2020):
Disregard the above, this apparently has to do with the runuser (which KeepassXC is known not to work nicely with), disabling the following lines
solves the issue.
@rusty-snake commented on GitHub (Dec 24, 2020):
What does
echo $SSH_AUTH_SOCKshow?