Skip to main content

3.7.4 Registering/Deleting a User Public Key for the SSH Service


3.7.4 Registering/Deleting a User Public Key for the SSH Service
To use an SSH service user key through an XSCF-LAN connection, create a user secret key and user public key for a registered XSCF user account on the client PC, and register the user public key with the XSCF.
  1. Execute the showssh command to display user public keys.
    In the following example, the -c pukey option is specified to display the user public key. However, no response is returned because no user key has been registered.
XSCF> showssh -c pubkey
  1. Create a user secret key and user public key for a registered XSCF user account on the client.
    For details on how to create the user key and how to specify a passphrase on the client, see the manual of the client software being used. We recommend setting a passphrase.
  2. To register the user public key, execute the setssh command with the -c addpubkey option specified, copy the user public key created in step 2, and paste it in the window.
    After pressing the [Enter] key, press the [Ctrl] and [D] keys to complete registration.
    The following example registers the user public key for user efgh.
XSCF> setssh -c addpubkey -u efgh
Please input a public key:
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAzFh95SohrDgpnN7zFCJCVNy+jaZPTjNDxcidQGbihYDCBttI4151Y0Sv85FJwDpSNHNKoVLMYLjtBmUMPbGgGVB61qskSv/FeV44hefNCZMiXGItIIpKP0nBK4XJpCFoFbPXNUHDw1rTD9icD5U/wRFGSRRxFI+Ub5oLRxN8+A8= efgh@example.com
<Press the [Ctrl] and [D] keys>
XSCF>
  1. Execute the showssh command, and confirm the user public key and user public key number.
    The following example shows a user key registered with the number 1.
XSCF> showssh -c pubkey
Public key:
1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAzFh95SohrDgpnN7zFCJCVNy+jaZPTjNDxcidQGbihYDCBttI4151Y0Sv85FJwDpSNHNKoVLMYLjtBmUMPbGgGVB61qskSv/FeV44hefNCZMiXGItIIpKP0nBK4XJpCFoFbPXNUHDw1rTD9icD5U/wRFGSRRxFI+Ub5oLRxN8+A8= efgh@example.com
  1. At the next XSCF shell login, establish an SSH connection from the client PC by using an XSCF user account. Confirm that you can log in to the XSCF shell with authentication using the user key.
  2. To delete a user public key, execute the setssh command with the user public key number specified.
    In the next example, the -c delpubkey option is specified along with the user public key number specified with the -s option, to delete the user public key.
XSCF> setssh -c delpubkey -s 1
1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAzFh95SohrDgpnN7zFCJCVNy+jaZPTjNDxcidQGbihYDCBttI4151Y0Sv85FJwDpSNHNKoVLMYLjtBmUMPbGgGVB61qskSv/FeV44hefNCZMiXGItIIpKP0nBK4XJpCFoFbPXNUHDw1rTD9icD5U/wRFGSRRxFI+Ub5oLRxN8+A8= efgh@example.com
  1. Execute the showssh command, and confirm that the user public key has been deleted.
XSCF> showssh -c pubkey