Results 1 to 3 of 3

Thread: Sudo in a private-key authenticated SSH session

  1. #1
    Join Date
    Feb 2008
    Beans
    21

    Sudo in a private-key authenticated SSH session

    I've got SSH set up on my home server to allow private-key authentication only to log on. Can Sudo be configured to re-check the authentication key instead of prompting for a password? Or would there be no security benefit to this, and I should just disable passwords for Sudo?

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Sudo in a private-key authenticated SSH session

    I do not think it can be configured to prompt for your key again.

    In any case, once someone is connected via private key, they would still need to know the user password in order to use sudo, so it's two layers of security.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Sudo in a private-key authenticated SSH session

    Remember that all of the SSH traffic is encrypted, so when you type in your password for sudo, it does not go over the wire in plain text. Thus it's still fully secure.
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •