|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Remove ssh private prompt
Hello,
I use OpenBSD with xfce and xenodm(1). After login in, I am prompted with a popup that asks for my ssh private key passphrase. How can I remove this from happening? I am willing to enter my passphrase but only when I use ssh, very seldom. Not at every xenodm login. Also, I don't want ssh to remember my passphrase. That would be a dirty workaround. Thank you |
|
|||
I was looking for a way to disable ssh-agent at the user level (through ~/.xession maybe) but I can't find how to that while reading man pages of xenodm or ssh-agent.
What I can do is remove the stored keys with ssh -D ~/.ssh/mykey but that work until I reuse my key. Or I could edit /etc/X11/xenodm/Xsession and remove the ssh-agent part. Are those my solutions ? |
|
|||
Solved!
I create a copy of /etc/X11/xenodm/Xsession in which I commented the lines concerning ssh-agent (25-38). I put my custom file in /etc/X11/xenodm/ and named it Xsession.local Then edited /etc/X11/xenodm/xenodm-config to add my config file path and comment the orginal path. 2 questions: - xenodm-config is read-only (444 root:bin), so I had to run a chmod before editing it and re-chmod it to its originals permissions. Is that normal ? Why is this specific file read-only ? - I choose to put my own conf file in the same directory as the original, appending the .local suffix to mimic the rc.conf and rc.conf.local pattern. Is it a good approach ? |
|
|||
I use ssh like maybe once a year mostly for experiment.
My current ssh setup as been motivated by the need to remotely maintaining my father's computer (running Debian) in case of a failure. I am not expecting much trouble and if something goes wrong, I am not sure any internet connexion will be possible anyway. So being tired of pressing ESC every day, I decided to disable ssh-agent. I know ... there is quite a contradiction using OpenBSD (home of OpenSSH) and disabling ssh-agent |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PS1 command line prompt AFTER su | s2scott | OpenBSD General | 4 | 21st February 2012 02:33 PM |
mountroot prompt after update | zeiz | FreeBSD Installation and Upgrading | 8 | 23rd October 2010 07:30 PM |
HostV's virtual private servers go very private | J65nko | News | 0 | 10th February 2010 05:17 AM |
Nicer Prompt with ksh on 5.0 | nihonto | NetBSD Installation and Upgrading | 8 | 12th October 2009 08:49 PM |
what to do at mountroot prompt? | Sunsawe | FreeBSD General | 13 | 5th June 2008 08:06 AM |