[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2026-08-29 Thread Alistair Buxton
Note that you do not need to mess around disabling "Gnome services" in
the Xfce settings - the whole reason this broke is because those
"services" (gnome-keyring) no longer include an ssh agent, so there is
no conflict between those and gcr. You also don't need to change
anything in the "Application Autostart" panel.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2026-08-29 Thread Alistair Buxton
Apparently the answer is "because Xfce does not start applications as
transient systemd units" whatever that means.

The workaround in full:

1. apt install gcr
2. systemctl --user enable --now gcr-ssh-agent.socket
3. Put "export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR}/gcr/ssh" in ~/.profile

Now everything works exactly like it used to on previous releases, with
one minor change: if you log out and log in again, any unlocked keys are
remembered. This is because systemd allows the gcr daemon to persist
even after you log out.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2026-08-29 Thread Alistair Buxton
Some more detail on why exactly the LWN suggestion doesn't work.

First of all, you have to install gcr (and possible gcr4) then check
this:

systemctl --user is-enabled gcr-ssh-agent.socket

If it doesn't say "enabled" you have to enable it:

systemctl --user enable --now gcr-ssh-agent.socket

After this gcr will run on startup, and it will create the agent socket.
But it will not set the environment variable within Xfce. That is why it
does not work.

If you open a terminal in Xfce and run:

export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR}/gcr/ssh

Now the graphical prompts will work correctly in that session. You'll
only see one; after that the key is remembered session-wide - although
to access it in a different terminal you will have to export the socket
path again.

So the question that remains is why doesn't the systemd service set the
environment variable like it is supposed to?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2026-06-02 Thread Alistair Buxton
The suggestion on LWN does not work. The passphrase prompts still appear
on the terminal every time you run ssh.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2026-04-28 Thread Das Gürteltier
Someone on LWN has a solution to this problem:
https://lwn.net/Articles/1069465/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2026-03-26 Thread Nick Rosbrook
** Tags removed: dcr-incoming

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-12-31 Thread Carlos Garcia
This issue is also affecting me as well. I upgraded to 25.10 a few hours
ago and when i tried to push my work to github no prompt came up for me
to type in my ssh password.  it stalled and after a few hours of
debugging i was able to turn off the ssh agent using `git config
--global core.sshCommand "ssh -o IdentityAgent=none -o
IdentitiesOnly=yes -i ~/.ssh/id_ed25519". this allowed me to see the
password prompt, put in my password and then push to github.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-11-02 Thread Mike Rans
It seems like for me SSH_AUTH_SOCK is not set correctly. It is
/run/user/1000/openssh_agent in bash. I have added in ~/.bashrc:
`export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"` which appears
to fix the issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-11-02 Thread Mike Rans
After upgrading to Kubuntu 25.10, ssh stopped working for me and I don't
get a graphical prompt. ssh-add -L just hangs. Could this be related to
the problem described in this issue?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-20 Thread Nick Rosbrook
Are you running "vanilla" Ubuntu with GNOME, or a different flavor?

The bug status for openssh is misleading, the original issue described
here relates to the gcr4 ssh agent implementation, not ssh-agent from
the openssh package.

I think that for ssh-agent from the openssh package, it's expected that
data is not persisted across reboots.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-19 Thread Glotzbach
I'm an Ubuntu user who's hobbying with self-hosting. I think I'm affected by 
this bug: On my old laptop (24.04.3 LTS) logging in with my SSH key works fine; 
I don't need to enter a password or make changes after each reboot, but on my 
new laptop (Ubuntu 25.10) I do.
Using 'ssh-add ~/.ssh/id_ed25519' helps but is not persistent between reboots. 
This 'Personal SSH key' is also available in Seahorse ('Passwords and keys').
I see that a fix was released in "openssh - 1:10.0p1-5ubuntu5" but I have 
"OpenSSH_10.0p2 Ubuntu-5ubuntu5, OpenSSL 3.5.3 16 Sep 2025" and still have the 
issue. Maybe something else was fixed than what I'm experiencing?
If we need to change our ways of working, I would be grateful for some guidance 
on the new ways of working to be shared/published.
Many thanks to all who've been working on this!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-18 Thread Alessandro Astone
> Andreas - can you please provide the output of:

And also just `echo $SSH_AUTH_SOCK`. We don't know yet what it is set to
in their case.


> For example, an SSH session will not have SSH_AUTH_SOCK set.

Mh, yeah ssh-agent.socket should probably be fixed to expose its
SSH_AUTH_SOCK to the remote shell.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-18 Thread Alessandro Astone
I'm not sure ssh-agent.socket is at all related here.
On a desktop system like Xubuntu you were probably using the gnome-keyring ssh 
agent (at $XDG_RUNTIME_DIR/keyring/ssh). In questing that was replaced by the 
gcr4 ssh agent (at $XDG_RUNTIME_DIR/gcr4/ssh), managed by 
/usr/lib/systemd/user/gcr4-ssh-agent.socket. Both gnome-keyring and 
gcr4-ssh-agent use `systemctl --user set-environment` to expose the socket path.

`systemctl --user set-environment` affects the environment of all units
started after that call. If the systemd startup sequence of your desktop
is correct, the desktop shell will be started *after* the gcr4-ssh-
agent.socket so that the shell will get SSH_AUTH_SOCK set and it will
correctly pass it to its children apps.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-18 Thread Nick Rosbrook
I thought I tested in a full questing GNOME desktop environment, but
apparently not, because in those cases the SSH_AUTH_SOCK is set
accordingly by gcr-ssh-agent.socket (which I didn't know existed).

It's still true that `systemctl --user set-envrionment` only works when
the process is launched as a child of the systemd user manager, e.g.
with StartTransientUnit or systemd-run. For example, an SSH session will
not have SSH_AUTH_SOCK set.

So, I guess it depends on whether xfce is actually launching apps as
systemd units? I know nothing about Xubuntu specifically.

Andreas - can you please provide the output of:

$ systemctl --user status gcr-ssh-agent.socket gcr-ssh-agent.service
$ systemctl --user status gnome-keyring-daemon.socket 
gnome-keyring-daemon.service

Maybe there are other relevant units for Xubuntu?

** Also affects: xubuntu-meta (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: xubuntu-meta (Ubuntu)
   Importance: Undecided => Critical

** Changed in: xubuntu-meta (Ubuntu)
Milestone: None => ubuntu-25.10

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-18 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: xubuntu-meta (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-17 Thread Sean Davis
Plucky does not exhibit the same behavior.

sean-davis@sean-davis-Standard-PC-Q35-ICH9-2009:~$ ssh-add
sean-davis@sean-davis-Standard-PC-Q35-ICH9-2009:~$ echo $SSH_AUTH_SOCK
/run/user/1000/keyring/ssh

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-02 Thread Nick Rosbrook
> That's not necessary, provided that the graphical shell process has
the environment set and exports it when forking to the app process.

Well, that's what the `ExecStart=systemctl --user set-environment`
pattern in the socket unit is relying on. Obviously, that is not the
only way to set the environment.

> I suggest a small patch to xfce4-session to try and find other known
sockets, in order

That's probably the best option at this point.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-02 Thread Alessandro Astone
> (2) It does not appear that xfce launches applications as transient
systemd user units. To see this, try > running the following from a
terminal in a graphical session:

That's not necessary, provided that the graphical shell process has the
environment set and exports it when forking to the app process.

> (3) So, given that we moved from gnome-keyring to gcr4, my guess is
that gnome-keyring had another method of setting the SSH_AUTH_SOCK
variable in addition to the systemctl --user set-environment call in the
socket unit, and that gcr4 has no such mechanism.

Ok, xfce4-session has special integration with gnome-keyring-daemon.
It runs `gnome-keyring-daemon` which prints out some key-value-pairs to stdout 
and xfce4-session uses those to set its own environment:

$ gnome-keyring-daemon --start 2>/dev/null
GNOME_KEYRING_CONTROL=/run/user/1000/keyring
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh

See https://salsa.debian.org/xfce-
team/desktop/xfce4-session/-/blob/972de48270971c2dc872bb5608ddac4a9ad8e0a1/xfce4-session/xfsm-
compat-gnome.c#L158

Now that gnome-keyring-daemon no longer provides an ssh agent,
xfce4-session doesn't know where to find one anymore.

I suggest a small patch to xfce4-session to try and find other known sockets, 
in order:
$XDG_RUNTIME_DIR/gcr/ssh
$XDG_RUNTIME_DIR/openssh_agent

Long-term, xfce4-session should invest in moving its session startup to
be systemd-based. But that's definitely out of scope for 25.10

** Changed in: gcr4 (Ubuntu)
   Status: New => Won't Fix

** Changed in: gcr4 (Ubuntu)
Milestone: ubuntu-25.10 => None

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-01 Thread Nick Rosbrook
Okay, I have had some assistance in debugging on Xubuntu 25.04 vs 25.10,
and this is what I have at the moment.

(1) openssh is indeed not a factor for the desktop use case, though ssh-
agent.socket uses the same method for setting the environment, and has
the same drawback

(2) It does not appear that xfce launches applications as transient
systemd user units. To see this, try running the following from a
terminal in a graphical session:

$ systemctl --user status $$

On GNOME, you will see something like:

ubuntu@q-vm:~$ systemctl --user status $$
● ptyxis-spawn-00f46578-4dcb-472e-8bda-8ea66aa37249.scope - [systemd-run] 
/usr/bin/bash
 Loaded: loaded 
(/run/user/1000/systemd/transient/ptyxis-spawn-00f46578-4dcb-472e-8bda-8ea66aa37249.scope;
 transient)
  Transient: yes
 Active: active (running) since Wed 2025-10-01 22:18:25 UTC; 8min ago
 Invocation: 0e1008e4a3964294b70663380994d239
  Tasks: 3 (limit: 3936)
 Memory: 5.6M (peak: 22M)
CPU: 514ms
 CGroup: 
/user.slice/user-1000.slice/[email protected]/app.slice/ptyxis-spawn-00f46578-4dcb-472e-8bda-8ea66aa37249.scope
 ├─3590 /usr/bin/bash
 ├─3900 systemctl --user status 3590
 └─3901 pager

Oct 01 22:18:25 q-vm systemd[2034]: Started ptyxis-
spawn-00f46578-4dcb-472e-8bda-8ea66aa37249.scope - [systemd-run]
/usr/bin/bash

On xfce (and e.g. an SSH session), you will see:

ubuntu@q-vm:~$ systemctl --user status $$
PID 3860 does not belong to any loaded unit.

(3) So, given that we moved from gnome-keyring to gcr4, my guess is that
gnome-keyring had another method of setting the SSH_AUTH_SOCK variable
in addition to the systemctl --user set-environment call in the socket
unit, and that gcr4 has no such mechanism. I have not verified this, but
setting gcr4 as an affected package based on that idea.

** Changed in: gcr4 (Ubuntu)
Milestone: None => ubuntu-25.10

** Changed in: gcr4 (Ubuntu)
   Importance: Undecided => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-01 Thread Sean Davis
Confirming the bug and documented behavior so far:

bluesabre@xubuntu-questing:~$ ssh-add
Could not open a connection to your authentication agent.
bluesabre@xubuntu-questing:~$ ssh -T [email protected]
Enter passphrase for key '/home/bluesabre/.ssh/id_rsa': 
Hi bluesabre! You've successfully authenticated, but GitHub does not provide 
shell access.
bluesabre@xubuntu-questing:~$ ssh -T [email protected]
Enter passphrase for key '/home/bluesabre/.ssh/id_rsa': 
Hi bluesabre! You've successfully authenticated, but GitHub does not provide 
shell access.
bluesabre@xubuntu-questing:~$ echo $SSH_AUTH_SOCK

bluesabre@xubuntu-questing:~$ systemctl --user status $$
PID 2706 does not belong to any loaded unit.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-01 Thread Nick Rosbrook
** Also affects: gcr4 (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcr4/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-10-01 Thread Launchpad Bug Tracker
This bug was fixed in the package openssh - 1:10.0p1-5ubuntu5

---
openssh (1:10.0p1-5ubuntu5) questing; urgency=medium

  * test: workaround test failure caused by uutils dd (LP: #2125943)
  * authfd: fallback to default if $SSH_AUTH_SOCK is unset (LP: #2125549)

 -- Nick Rosbrook   Mon, 29 Sep 2025 14:43:07 -0400

** Changed in: openssh (Ubuntu)
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-09-25 Thread Nick Rosbrook
** Changed in: openssh (Ubuntu)
   Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-09-24 Thread Andreas Schultz
The behavior of the environment is also explained in this systemd GH
issue https://github.com/systemd/systemd/issues/29414

Gnome uses a special terminal server service that inherits systemd user
environment to launch terminals.

** Bug watch added: github.com/systemd/systemd/issues #29414
   https://github.com/systemd/systemd/issues/29414

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-09-24 Thread Nick Rosbrook
Okay, I confirmed that it's wrong to assume that:

ExecStartPost=/usr/bin/systemctl --user set-environment
SSH_AUTH_SOCK=/run/user/1000/openssh_agent

will do the right thing in the general case. This does correctly set the
environment in the user manager, and if you launch an application like
e.g.:

$ systemd-run --user --wait --pipe -q -- ssh-add

then the environment is inherited, and $SSH_AUTH_SOCK is set. But, if
one has a session spawned by login(1), this is not going to happen.

Maybe as a quick fix, we could patch openssh to try
$XDR_RUNTIME_DIR/openssh_agent (the default) if $SSH_AUTH_SOCK is unset.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2125549] Re: ssh agent no longer work a questing upgrade

2025-09-24 Thread Nick Rosbrook
This appears to be a breakage related to ssh-agent.socket.

On my questing system, ssh-socket.service is listening on
$XDG_RUNTIME_DIR/openssh_agent, but SSH_AUTH_SOCK is not set in my
environment.

ubuntu@q-vm:~$ systemctl --user status ssh-agent.socket
● ssh-agent.socket - OpenSSH Agent socket
 Loaded: loaded (/usr/lib/systemd/user/ssh-agent.socket; enabled; preset: 
enabled)
 Active: active (listening) since Wed 2025-09-24 13:49:25 UTC; 6min ago
 Invocation: 23fe2f1f95f04f838cc05887bdd3
   Triggers: ● ssh-agent.service
   Docs: man:ssh-agent(1)
 Listen: /run/user/1000/openssh_agent (Stream)
Process: 25258 ExecStartPost=/usr/bin/systemctl --user set-environment 
SSH_AUTH_SOCK=/run/user/1000/openssh_agent (code=exited, status=0/SUCCESS)
  Tasks: 0 (limit: 986)
 Memory: 4K (peak: 1.7M)
CPU: 4ms
 CGroup: 
/user.slice/user-1000.slice/[email protected]/app.slice/ssh-agent.socket

Sep 24 13:49:25 q-vm systemd[25248]: Starting ssh-agent.socket - OpenSSH Agent 
socket...
Sep 24 13:49:25 q-vm systemd[25248]: Listening on ssh-agent.socket - OpenSSH 
Agent socket.
ubuntu@q-vm:~$ env | grep SSH_

It's unclear to me if the `systemctl --user set-environment` call in
ssh-agent.socket is intended to hook things up in the user session, but
that's not what it does.

I will keep digging.

See also:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961311
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039919
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103037

** Bug watch added: Debian Bug tracker #961311
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961311

** Bug watch added: Debian Bug tracker #1039919
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039919

** Bug watch added: Debian Bug tracker #1103037
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103037

** Changed in: openssh (Ubuntu)
   Status: New => Confirmed

** Changed in: openssh (Ubuntu)
   Importance: Undecided => Critical

** Changed in: openssh (Ubuntu)
 Assignee: (unassigned) => Nick Rosbrook (enr0n)

** Changed in: openssh (Ubuntu)
Milestone: None => ubuntu-25.10

** Tags added: dcr-incoming

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125549

Title:
  ssh agent no longer work a questing upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2125549/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs