-
On a Linux machine, run the following command:
[user@linux ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/user/.ssh/id_rsa. Your public key has been saved in /home/user/.ssh/id_rsa.pub. The key fingerprint is: 75:82:e2:6e:07:2b:8e:5c:83:e8:e5:17:e4:d3:62:ff user@linux The key's randomart image is: +--[ RSA 2048]----+ | | | . | | . . o . | | o . . o | | o + S | | . . B + | |. ..= O . | |..o+ = o | | .o.o .E | +-----------------+
Now you have created two key files in the directory of “.ssh”. The file id_rsa.pub is the public key file, and id_rsa is your private key file.
- Get the content of the public key.
# cd .ssh # cat id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvNQB/PGmK9yA8jeub5zkXbPnuv8iH9ArMrKCfeMFpSHS huBL49ZU/jcq1k/xm8CGtaC0YIZK0HqYYum011z/NY/8/5xqaYLAdrtqOJ1UThe68emhcSM8YfDvFXMF NXSOAOCOm9JMsIvbOAIHSTbwF64g1zfyHWaDUKZRegsseMYdNDu6mfTIYqB3jslvueeDVBPhyClcsbCw BVYJAQbJMvrgjnBkbTqO8/opXs+TqxN7YrzoNw5aMe3F1/WA519iKQCIvRmSZ9HuzTnZiwZsH+crPFZ7 fQOeecWoWVirq20qzb2ZpcWgnqySmzYEEQoFUX/XniW2uEZMlLFjwg1v8w== user@linux
Copy and paste the entire content of the public key file into the Teraproc Cluster-as-a-Service portal when creating a cluster.
- After the cluster is created, use the following command to connect to it. Make sure to replace “user” with the user name that you register during cluster creation, and replace xx.xx.xx.xx with the real IP address of the cluster head node.
# ssh -i id_rsa user@xx.xx.xx.xx