- Generate public key
- Copy the public key / private key to the Chromebook
- Set the key to Secure Shell
- Conclusion - SSH to CentOS with Chromebook Secure Shell public key authentication
Generate public key
When generating a public key on a Chromebook, it is necessary to switch to the developer mode. However, since the key is generated on the Linux server side this time, switching to the developer mode is not necessary.
$ ssh-keygen (Passphrase input as necessary)
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys $ chmod 700 ~/.ssh $ chmod 600 ~/.ssh/authorized_keys
Copy the public key / private key to the Chromebook
Copy the public key and secret key to your hand with the SFTP tool etc. In the case of TeraTerm etc., it is sufficient to use only the secret key, but Secure Shell also requires a public key.
Create a folder such as ssh under the "Download" folder and copy the key from the server. Unfortunately .ssh etc .(period) Starting folder can not be created. *Be careful not to put it on Google Drive!! There is a risk of leakage of private key!!
Set the key to Secure Shell
Be careful as this is different from TeraTerm etc. Click Import to select the key set.
Select one and press Shift + arrow to select the public key and secret key. (Sorry in JP's figure)
The key is now imported.
If only the secret key is selected, the selected key is not displayed (imported) in the pull down list.
How to delete a key set
When the key selection is wrong, it can be deleted as follows.
DEL key with state selected with Identity
Detailed manuals are listed here.
Conclusion - SSH to CentOS with Chromebook Secure Shell public key authentication
By generating keys on the Linux (CentOS) server side, public key authentication SSH connection with Secure Shell can be established without setting Chromebook to developer mode. Unlike TeraTerm etc., it is necessary to read the public key / secret key to the client with a set.