Paste ssh-keygen -t rsa and hit Enter. Wait for generation to finish;
Pick a name for key-value pair (or id_rsa by default) and you can live without the passphrase however it increases security. It’s like combining both password-based and asymmetric key-based authentication;
Execute ls. Find 2 files in the folder and .pub (e.g. id_rsa and id_rsa.pub). They will be used later.
Set correct permissions on your private key: chmod 400 <key>
(Optional) I recommend to rename .pub to _pub.pub — it will help to locate the file in Files app later. Files don’t show file extensions for some godforsaken reason. Just do for example mv id_rsa.pub id_rsa_pub.pub.
Create a server instance
Find the confirmation email from Oracle and proceed to the Oracle Cloud Console link;
Enter your username/email and password — and you should be able to access the dashboard;
You should be able to see “Create a VM instance” link. Click it.
Choose the preferable name (that is easy to read) and you can live all settings by default (unless you’re experienced user) except Add SSH key section: Choose Upload public key files (.pub) and click Browse.
Now pick the public key generated earlier — it will be located in iSH/root folder and have .pub ending. (Unless you chose different folder when generated those keys. If you haven’t add suffix _pub to public key to distinguish it — public key has smaller size.
Hit Create.
Connect to the instance
点击“创建”后,如果一切正常且星号正确对齐,则应显示包含实例详细信息的页面。它将显示实例处于Provisioning状态。我们需要来自此设置的重要信息:公共 IP 地址和用户名(通常是 ops)。等到实例处于运行状态并复制该数据。
现在运行 iSh 并执行:ssh -i <key> USERNAME@PUBLIC_IP。瞧。现在您在云中拥有自己的免费服务器。分享您计划如何使用它的想法!让我们发挥创造力。