SSH-Agent not working in KDE/X-Session if user's login shell is a tcsh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson | ||
Saucy |
Won't Fix
|
Medium
|
Colin Watson | ||
Trusty |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
[Impact] ssh-agent startup via Upstart doesn't work if the user's shell is [t]csh.
[Test Case] Create a guest account whose shell is tcsh and make sure that they can start a session and get ssh-agent. Note that this may not work for GNOME-flavoured sessions due to gnome-keyring taking precedence.
[Regression Potential] Confined to the ssh-agent started via Upstart, and in any event should be trivial since -s is already the default for most (just not all) users.
For X11/KDE sessions ssh-agent is started via upstart using configuration file /usr/share/
If the user's login shell is tcsh or csh ssh-agent will return c-shell like setenv commands which upstart/shell do not recognize. Thus environment variables $SSH_* are not propagated into the user's desktop session and neither ssh nor ssh-add are able to contact ssh-agent.
Solution: use ``eval "$(ssh-agent -s)"'' to force sh-like output of ssh-agent (context diff included as attachment)
Addition information: Bug occures at least in 13.10 and 14.04 amd64 architecture. In 14.04 the affected openssh-client package version is 1:6.2p2-6ubuntu0.3
tags: | added: saucy trusty |
Changed in openssh (Ubuntu): | |
importance: | Undecided → Medium |
Changed in openssh (Ubuntu Saucy): | |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in openssh (Ubuntu Trusty): | |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in openssh (Ubuntu Saucy): | |
status: | New → Triaged |
Changed in openssh (Ubuntu Trusty): | |
status: | New → Triaged |
Changed in openssh (Ubuntu Saucy): | |
importance: | Undecided → Medium |
Changed in openssh (Ubuntu Trusty): | |
importance: | Undecided → Medium |
milestone: | none → ubuntu-14.04.1 |
description: | updated |
Changed in openssh (Ubuntu Trusty): | |
status: | Triaged → In Progress |
Changed in openssh (Ubuntu Saucy): | |
status: | Triaged → In Progress |
The attachment "Patch for /usr/share/ upstart/ sessions/ ssh-agent. conf" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]