LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-11-2020, 12:31 PM   #16
ardya
Member
 
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89

Original Poster
Rep: Reputation: 18

My issues begin after login. Something is sourcing ~/.bash_profile which contains my ssh keychain init:

/usr/bin/keychain ~/.ssh/id_rsa
. ~/.keychain/slackware-current.dhcp.ldev-sh > /dev/null

Prior to the big merge, I used a script that had the above and had it autostart as part of xfce4 init.
As best as I could tell, ~/.bash_profile wasn't being sourced during X11/xfce4 init hence the need for
the script to be run from xfce4 autostart. I removed the reference to the script from xfce4 autostart,
but that didn't stop the behaviour. I then commented out the keychain lines from ~/.bash_profile, tried
a login, and that worked. Also tried logging in via ssh first, going through the keychain init, then
logging into X, and that too worked.

Something about invoking ssh-askpass is preventing the display from showing. I'm wondering if $DISPLAY
is set when ssh-askpass is called. I don't see any cli request for passphrase in any logs.
 
Old 12-12-2020, 08:24 AM   #17
ardya
Member
 
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by aikempshall View Post
I hope this is the correct thread.
You should start a new thread as your issue is not the same as mine, where you can provide a subject line better suited to your specific problem, and your issues won't be confused with the ones I'm experiencing. We'll both get better help that way.
 
Old 12-15-2020, 08:35 PM   #18
ardya
Member
 
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89

Original Poster
Rep: Reputation: 18
So here's what I've found, and to summarize. I run XFCE in initlevel 4. I also load ssh keys via shell init using the keychain program.
My .bash_profile includes these lines for keychain init:

Code:
/usr/bin/keychain ~/.ssh/id_rsa
. ~/.keychain/slackware-current.dhcp.ldev-sh > /dev/null
Prior to the big merge, I had a script in .config/autostart that ran the above.
Since sddm seems to source ~/.bash_profile, and I didnt have SSH_ASKPASS set, ssh-add
just hung there, and no way to provide the ssh passphrase to ssh-add.
After much testing, I found I no longer have to have the script in autostart, and I had
to add
Code:
export SSH_ASKPASS=/usr/libexec/ssh-askpass
to .bash_profile.
Now when I login, I get x11-ssh-askpass prompt for passphrase, as it was before, and my
X session and terminals all share the same ssh-agent, as it did before

Marking as solved.

Thanks to those who tried to help, and I apologize if I wasn't clear about the problem.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Raspberry Pi benchmarked against Beagleboard, low price is long ter LXer Syndicated Linux News 0 02-10-2012 08:40 AM
What To Do Af ter You Write An Iso Image? SlientThinker Linux - Newbie 2 05-02-2008 06:17 AM
Firefox no longer starts in Slackware 12 after doing updates AceofSpades19 Slackware 30 02-01-2008 02:05 PM
To create a bin or ter.gz file creativemadhan Linux - Newbie 3 07-21-2006 05:29 PM
PS2 mouse goes crazy [it goes round n round n round...] goci Linux - Hardware 2 10-09-2003 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration