1)); $u =& user_get_object(user_getid()); exit_assert_object($u, 'User'); if ($submit) { if (!$u->setAuthorizedKeys($authorized_keys)) { exit_error( 'Error', 'Could not update SSH authorized keys: '.db_error() ); } session_redirect("/account/"); } else { // not valid registration, or first time to page site_user_header(array(title=>"Change Authorized Keys",'pagename'=>'account_editsshkeys')); ?>
To avoid having to type your password every time for your CVS/SSH developer account, you may upload your public key(s) here and they will be placed on the CVS server in your ~/.ssh/authorized_keys file.
To generate a public key, run the program 'ssh-keygen' (you can use both protocol 1 or 2). The public key will be placed at '~/.ssh/identity.pub' (protocole 1) and '~/.ssh/id_dsa.pub' or '~/.ssh/id_rsa.pub' (protocole 2). Read the ssh documentation for further information on sharing keys.