Chapter 6: Access Control for Administration 61
Remove an SSH Key File Entry
For example, the following steps create a key and then write the key to a restorer:
1. On the remote machine, create the public and private SSH keys.
jsmith > ssh-keygen -d
Generating public/private dsa key pair.
Enter file in which to save the key (/home/jsmith/.ssh/id_dsa):
.
.
2. Press Enter to accept the file location and other defaults. The public key created under
/home/jsmith/.ssh (in this example) is id_dsa.pub.
3. On the remote machine, write the public key to the restorer, dd10 in this example. The restorer
asks for the sysadmin password before accepting the key:
jsmith > ssh -l sysadmin dd10 “adminaccess add ssh-keys” \
< ~/.ssh/id_dsa.pub
Remove an SSH Key File Entry
To remove one entry from the SSH key file, use the adminaccess del ssh_keys lineno
operation. The
lineno variable is the line number as displayed by the adminaccess show
ssh-keys
command. Available only to administrative users.
adminaccess del ssh-keys lineno
For example, to remove the third entry in the SSH key file:
# adminaccess del ssh-keys 3
Remove the SSH Key File
To remove the entire SSH key file, use the adminaccess reset ssh-keys operation.
Available only to administrative users.
adminaccess reset ssh-keys
Create a New HTTPS Certificate
To generate a new HTTPS certificate for the restorer, use the adminaccess https
generate certificate
command. Available only to administrative users.
adminaccess https generate certificate