Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh_agent problem on 2nd sessions #12604

Open
DanRoche opened this issue Jan 3, 2025 · 2 comments
Open

ssh_agent problem on 2nd sessions #12604

DanRoche opened this issue Jan 3, 2025 · 2 comments
Labels

Comments

@DanRoche
Copy link

DanRoche commented Jan 3, 2025

Distribution

mint 22 and mint 22.1 beta

Package version

cinnamon 6.4.2 and 6.2.9

Graphics hardware in use

No response

Frequency

Always

Bug description

not sure this issue is related to cinnamon, may be a problem of ssh-agent...
this is the same issue posted at : linuxmint/linuxmint#705

i repost it since it is still here in LM 22.1 beta.

after logout and login again with the same user, the ssh-agent is running, but SSH_AUTH_SOCK env is not set
thus ssh-add say : "could not open a connection to your authentication agent"

Steps to reproduce

login into cinnamon session, launch ssh-add -L in a terminal

  • it display the ssh-key identities of the user
    logout and login again with the same user, relaunch ssh-add -L in a terminal
  • it says : could not open a connection to your authentication agent

Expected behavior

ssh-agent should work in every cinnamon session, not just the 1st one.

Additional information

this is a repost of linuxmint/linuxmint#705

@DanRoche DanRoche added the BUG label Jan 3, 2025
@leigh123linux
Copy link
Contributor

Try creating /lib/systemd/user-preset/99-gnome-keyring-daemon-disable.preset

sudo touch  /lib/systemd/user-preset/99-gnome-keyring-daemon-disable.preset
sudo nano /lib/systemd/user-preset/99-gnome-keyring-daemon-disable.preset

and add

disable gnome-keyring-daemon*

Then run

sudo systemctl --global disable gnome-keyring-daemon.service
sudo systemctl --global disable gnome-keyring-daemon.socket

reboot

@DanRoche
Copy link
Author

DanRoche commented Jan 3, 2025

Hi,

i've just done that in a brand new LM22.1 beta.
it seem to fix the problem, i have tried several logout/login and ssh-agent ( ssh-add -L ) is working now in every session.

i don't fully understand why but this seems to fix the problem. thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants