SSH double login to your server
Post ReplySSH double login to your serverPosted: Monday, June 21, 2010 [22:42:31] - 1
This script will do a login to your server and then "su". Very handy to have if you are a server admin and do not want to search for your passwords every time you have to do an administrative tasks. Why double login? - it was never advisable to login directly as "root", therefore it's best to login first to your regular user account and then "su" to your root account. "root" login should be disabled on your server. It will work best if you save this AppleScript as a "run only" application in your password protected image file. This way you have to remember only one password. end tell delay 2 tell application "System Events" -- this is your regular user user_name -- this is your regular user_name password -- replace user_name with your account username end tell delay 2 Just run the application and you'll be logged. |