@shijitht

July 31, 2010

su using ssh

Filed under: Commands — Tags: , , — shijitht @ 10:19 am

Use ssh-keygen to create privet and public keys for the user say guest.
Now change to root and add a new file in root home directory.
/root/.ssh/authorized_keys
Put public key of guest into it.
Now we can login as root from guest without typing root password.
$ ssh -l root localhost
Make sure ssh service is on.
Pretty handy if you need permission from administrator for each root access.

Advertisements

2 Comments »

  1. Superb idea…..u had tried this in our mini project lab ….

    Comment by Shruthi V — August 1, 2010 @ 9:37 pm

  2. It really works……thnx for ur information….

    Comment by Amrutha V — August 1, 2010 @ 9:39 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: