DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th January 2022
Root_BSD's Avatar
Root_BSD Root_BSD is offline
Real Name: John Doe
New User
 
Join Date: Nov 2021
Location: Idaho, USA
Posts: 7
Default How do you disable ssh-askpass when logging into user account via xenodm?

Hello, I've recently taken up learning more about ssh and servers. I wanted to secure my server with pubkey authorization and disable password logins. I generated ssh keys via ssh-keygen and used cat to copy the public key over to my server. Everything works great but for some reason right after logging into user account on my laptop via xenodm, ssh-askpass is invoked. I can click cancel and it goes away, but I can't for the life of me figure out how to disable it, without moving my id_ed25519 file to another folder, but then I can't ssh into my remote server if that is moved. Any help would be appreciated!
Reply With Quote
  #2   (View Single Post)  
Old 10th January 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

  • ssh-askpass(1) is invoked by ssh-add(1). See both man pages.
  • ssh-add(1) is invoked by /etc/X11/xenodm/Xsession. See the xenodm(1) man page regarding Xsession.
Reply With Quote
  #3   (View Single Post)  
Old 10th January 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Oh, yes... how to disable. You could modify the default Xsession script, you could point xenodm to an alternate DisplayManager*session file in /etc/X11/xenodm/xenodm-config, or you could start xenodm(1) with an alternate configuration file entirely via rcctl(8) startup flags.
Reply With Quote
  #4   (View Single Post)  
Old 10th January 2022
Root_BSD's Avatar
Root_BSD Root_BSD is offline
Real Name: John Doe
New User
 
Join Date: Nov 2021
Location: Idaho, USA
Posts: 7
Default

Thanks! Commenting out lines 26-30 in the /etc/X11/xenodm/Xsession stopped ssh-askpass from running, which was unnecessary for my use case.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting devices on standard user account jjstorm OpenBSD Installation and Upgrading 2 25th March 2016 02:44 AM
Cannot initialise Gnome with user account Saint OpenBSD Packages and Ports 3 24th May 2011 09:26 PM
Single and Multi User Mode Logging chicago OpenBSD General 2 13th May 2011 06:51 PM
Remove/disable a former system user anomie Guides 6 19th May 2008 12:37 AM


All times are GMT. The time now is 09:04 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick