Results 1 to 4 of 4

Thread: No password SU when ssh'd

  1. #1
    Join Date
    Jan 2006
    Location
    Denver, CO
    Beans
    83
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    No password SU when ssh'd

    Is there a way that once I'm SSH'd over to a server I can su into another account without needing to no that persons account password. Ideally it would be great if all I had to do was transfer the 1st accounts pub key into the 2nd accounts auth keys file to enable the 1st account ability to su into the 2nd account.

    The whole login sinario would look something like:

    %> ssh user1@server1.com
    * RSA Keyed used to login
    %> su user2
    * No password used. ssh-agent or whatever used my key to log me in

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No password SU when ssh'd

    If it is your server why don't you have the other users password, after all you set up the accounts.

    Jim

  3. #3
    Join Date
    Jan 2006
    Location
    Denver, CO
    Beans
    83
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: No password SU when ssh'd

    I have the passwords and everything. It just a matter of me not wanting to have to type in 50 million passwords as I jump around in a cluster of servers.

  4. #4
    Join Date
    Mar 2008
    Beans
    54
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: No password SU when ssh'd

    Quote Originally Posted by jazee View Post
    I have the passwords and everything. It just a matter of me not wanting to have to type in 50 million passwords as I jump around in a cluster of servers.
    su to root, root can su to any user without a password.

Tags for this Thread

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
  •