[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
I can confirm we get the same issues on Ubuntu Destktop 18.04.4 + Mate -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
I have a very similar experience on Ubuntu MATE 18.04. /run/user/1000/keyring/ssh is opened by gnome-keyring-daemon /run/user/1000/keyring/.ssh is opened by /usr/bin/ssh-agent $SSH_AUTH_SOCK points to /run/user/1000/keyring/ssh When I try to open an SSH session to another machine it hangs just after "SSH2_MSG_NEWKEYS received" Changing $SSH_AUTH_SOCK to point to /run/user/1000/keyring/.ssh allows the SSH to complete -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
I am also experiencing this problem on Ubuntu 17.04. I have seen suggestions in Internet forums that Gnome Keyring does not properly support all SSH key formats. I was using a 4096 bit RSA key in the situation that failed. When I changed to a 2048 bit RSA key the problem disappeared. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
** Changed in: gnome-keyring (Ubuntu) Assignee: HECTOR DAVID (hektve) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
** Changed in: gnome-keyring (Ubuntu) Assignee: (unassigned) => HECTOR DAVID (hektve) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
Are you all using the GNOME3 Staging PPA? If so, this is a known issue that I don't think will be fixed there. I believe this bug was fixed in Ubuntu GNOME 16.10 so I suggest upgrading. If you do, you will need to upgrade twice per year until 18.04 LTS. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
Hi, thanks for the info in this thread. It lead me into a work-around that seems to work for me. The scenario in my case: something is defining SSH_AUTH_SOCK but there's no ssh-agent running, despite use-ssh-agent being set in /etc/X11/Xsession.options. gnome-keyring-deamon is however running, where it's started is however unknown to me. The reason seems different (opposite) but the ssh-behavior is the same: It's not possible to log-in with keys. In my case I'm running unity and LightDM but have have a set-up where both unity, i3 and gnome has been VM/DM. I also still like to alter between VM:s as the machine is used by different users liking one or the other VM more. What's possibly worsened it is that the system has not had a clean re- install since 8.04, i.e. it's always been upgraded. (Some-where along the way I believe recalling having issues with gnome-keyring and possibly making an effort to disable it.) As I don't know where these environment variables are being set (not even SSH_AGENT_PID which in my case is unset), my workaround is to put the following line in /etc/bash.bashrc: if [ "X$(ps -Al -u $USER | grep ssh-agent)" == "X" ]; then unset SSH_AUTH_SOCK fi I'd appreciate feed-back if there are serious drawbacks with this approach or if a better/right way to manage this exists. (One obvious drawbacks is that tweaks like this become obsolete whence the right solution is pushed by the distribution and may cause new issues whence upgrading/updating, which may be how I ended up here in the first pace). Thanks -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal: apport-collect 1586835 When reporting bugs in the future please use apport by using 'ubuntu- bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
Here is the workaround: 1. disable start of ssh-agent from openssh by commenting out the use-ssh-agent line from file "/etc/X11/Xsession.options". 2. start ssh-agent from gnome-keyring daemon and set SSH_AUTH_SOCKET variable by adding the following to ${HOME}/.profile: # From man gnome-keyring-daemon: # Connect to an already running daemon and initialize it. # This is often used to complete initialization of a daemon that was # started by PAM using the --login argument. # Output is SSH_AUTH_SOCKET=path_to_the_socket if [ -z "$SSH_AUTH_SOCK" ]; then export `/usr/bin/gnome-keyring-daemon --start` fi -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gnome-keyring (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1586835] Re: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04
I have located a way to disable ssh-agent by commenting out the use-ssh- agent line from file "/etc/X11/Xsession.options". But even after doing this it is not guaranteed that the $SSH_AUTH_SOCK variable will be set when I open a new terminal, even while doing so several minutes after I have logged into my GNOME session, presumably when all session programs are running. Sometimes I open a terminal and see that $SSH_AUTH_SOCK is set, then close it and open a new one a few minutes later, and there is no $SSH_AUTH_SOCK anymore. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-keyring in Ubuntu. https://bugs.launchpad.net/bugs/1586835 Title: ssh-agent fighting gnome-keyring on Ubuntu Gnome 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1586835/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs