i guess most of the unix servers are configured not to allow root to ssh directly, at least sys admin will configured such way for security purpose. but in case of emergency or whatever reasons, you can try.
$ ssh -t root@hostname "su -"
- provide the root password & you are in as root.
this trick becomes handy when your password is expired or your account is locked, so that u can reset your password or unlock your account, but of cos u have to know the root password ;)
it works for solaris, unfortunately not with linux.
credit goes to my buddy - LC
Friday, October 28, 2005
Wednesday, October 26, 2005
Saturday, October 22, 2005
i like to collect linux tips & put it in one place for my reference. now i'm moving all the tips from http://komnas.com/~ashamril/tips/ to here.