Professional Web Applications Themes

sudo and ssh pass phrase - Linux / Unix Administration

All, I am not sure where I need to post this question. We are using ssh key based authentication for logging in.  there anyway we can make SUDO work with SSH keybased authentication method. Note: As this is a secure environment, we have made the login as "NP" indicating that this ID is locked. I appreciate any input. Thanks, Shekar...

  1. #1

    Default sudo and ssh pass phrase

    All,

    I am not sure where I need to post this question.
    We are using ssh key based authentication for logging in. 
    there anyway we can make SUDO work with SSH keybased authentication
    method.
    Note: As this is a secure environment, we have made the login as "NP"
    indicating that this ID is locked.
    I appreciate any input.

    Thanks,
    Shekar

    ctippur@gmail.com Guest

  2. #2

    Default Re: sudo and ssh pass phrase

    On 7 Jun 2005 19:26:47 -0700, com <com> wrote: 
    > there anyway we can make SUDO work with SSH keybased authentication
    > method.
    > Note: As this is a secure environment, we have made the login as "NP"
    > indicating that this ID is locked.
    > I appreciate any input.[/ref]

    If you're asking what I think you're asking... this should work:
    ssh userhost "sudo command"
    ....as long as you have "command" configured in the sudoers file as
    needing no password for "user". If that's not acceptable, or not what
    you're asking, then please give an example.

    Dave Hinz

    Dave Guest

  3. #3

    Default Re: sudo and ssh pass phrase

    com wrote: 

    I don't think so, at least not without changing the sudo source
    code. What you could do is set up /etc/sudoers so that users don't have
    to type in their password at all, if that's acceptable to you. I also
    see that sudo (at least on my systems) is linked against PAM, so maybe
    you could do something with that...

    I'm curious, though: what exactly do you mean when you say you want
    sudo to "work with SSH keybased authentication method"? How exactly do
    you picture this working? Under what cirstances would the sudo
    attempt be allowed or disallowed?

     

    Is there some particular reason you don't use passwords at all? You
    could always give the users passwords, but set up SSH so that it won't
    allow passwords for login purposes (look for "PasswordAuthentication" in
    the sshd_config man page).

    JDW

    Jeremiah Guest

Similar Threads

  1. How to Pull 1 word from a phrase in a table?
    By Greasy in forum Coldfusion - Advanced Techniques
    Replies: 7
    Last Post: May 20th, 03:04 PM
  2. Rotating Phrase Box
    By RabbiTheGreek webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 1
    Last Post: October 1st, 06:44 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139