[Bug 2070060] [NEW] ssh-add prints non-errors to stderr
Bilin Sun
2070060 at bugs.launchpad.net
Fri Jun 21 16:19:04 UTC 2024
Public bug reported:
I recently updated to 24.04, and switched from the default Wayland
environment to the X11 environment (by selecting "Ubuntu on Xorg"
instead of "Ubuntu" on the login screen) for better compatibility with
some software. After the switch, every time I logged in, I got a dialog
window saying
> Error found when loading /home/user/.profile:
> Identity added: /home/user/.ssh/id_ed25519
> As a result the session will not be configured correctly. You should fix the problem as soon as feasible.
This turned out to be caused by the line `ssh-add ~/.ssh/id_25519` which
I put in my `.profile` earlier. Once I changed it to `ssh-add
~/.ssh/id_25519 2>/dev/null`, this dialog stopped showing up again.
I believe that "Identity added" should not be considered an error, and
should be printed to stdout rather than stderr.
** Affects: openssh (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/2070060
Title:
ssh-add prints non-errors to stderr
Status in openssh package in Ubuntu:
New
Bug description:
I recently updated to 24.04, and switched from the default Wayland
environment to the X11 environment (by selecting "Ubuntu on Xorg"
instead of "Ubuntu" on the login screen) for better compatibility with
some software. After the switch, every time I logged in, I got a
dialog window saying
> Error found when loading /home/user/.profile:
> Identity added: /home/user/.ssh/id_ed25519
> As a result the session will not be configured correctly. You should fix the problem as soon as feasible.
This turned out to be caused by the line `ssh-add ~/.ssh/id_25519`
which I put in my `.profile` earlier. Once I changed it to `ssh-add
~/.ssh/id_25519 2>/dev/null`, this dialog stopped showing up again.
I believe that "Identity added" should not be considered an error, and
should be printed to stdout rather than stderr.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2070060/+subscriptions
More information about the foundations-bugs
mailing list