Bug 83496
Summary: | not asked for SSH passphrase on GDM login | ||
---|---|---|---|
Product: | [Retired] Red Hat Public Beta | Reporter: | Michael Wardle <michael.wardle> |
Component: | XFree86 | Assignee: | Mike A. Harris <mharris> |
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | phoebe | CC: | nalin |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-02-05 07:02:01 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michael Wardle
2003-02-04 22:00:06 UTC
It turns out ssh-agent was only invoked under the GNOME session because I had it in my ~/.xsession, and the Default session was being used rather than the GNOME session, meaning the out-of-the-box configuration does not start ssh-agent for any session. My ~/.xsession looks like: ----- `eval ssh-agent` ssh-add < /dev/null which gnome-session && exec gnome-session which startkde && exec startkde ... ----- In case ssh-agent is at fault, its version is openssh-clients-3.5p1-2. I misunderstood the purpose of ssh-agent. ssh-add is what prompts for the passphrase, and this is not in the Xsession script, so naturally it will not be run. I guess I'd like ssh-add to be run immediately after ssh-agent, so I am prompted for my SSH passphrase when logging in, but the issue I reported is not a bug, and there is probably a reason why my desired functionality is not the default. Hope I've not taken too much of anyone's time. Michael Wardle, if you want to be prompted for your ssh passphrase immediately when GNOME/KDE/X starts, you can create a executable .Xclients file (instead of your .xsession file) in your home directory. It would in fact be very similar to your .xsession file, but since ssh-agent is already active as an ancestor process to X, you just need to call ssh-add graphically. Here is what I have: [joshua@joshua joshua]$ cat ~/.Xclients (sleep 10; xterm -e ssh-add) & exec gnome-session Just a suggestion... |