IBM Cloud Integration

How to Deploy an IBM Cloud Server Instance

Sign in to IBM Cloud after creating an account.

Navigate to VPC Infrastructure and select SSH keys.

If there are no SSH keys, select the Create button.

For Name, type key.

For Region, select a location for the proxy server.

Open the system terminal application or command prompt.

Type this command and press Enter until the process completes.

ssh-keygen

The command output will show the file paths to use for private id_rsa and public id_rsa.pub SSH keys.

Your identification has been saved in FULL_PATH/.ssh/id_rsa. Your public key has been saved in /FULL_PATH/.ssh/id_rsa.pub.

Type this command and press Enter until the process completes.

ssh-keygen -y

Copy the public key output to the clipboard.

ssh-rsa PUBLIC_KEY

Go to IBM Cloud.

For Public key, paste the public key.

Select the Add SSH key button.

Select the navigation icon in the top-left corner of the screen.

Navigate to VPC Infrastructure and select Security groups.

If the default rule hasn't been changed, select the Rules tab.

For Inbound rules, select the Create button.

For Protocol, select ALL.

For Port, select Any.

Select the Save button.

Select the navigation icon in the top-left corner of the screen.

Navigate to VPC Infrastructure and select Virtual server instances.

Select the Create button.

For Name, type a unique instance name.

For Location, select the same location from the SSH key.

For Operating System, select Debian 9, Debian 10, Ubuntu 18.04 or Ubuntu 20.04.

For SSH keys, select the key that was created.

Finish creating the instance by selecting the Create virtual server instance button.

Select the navigation icon in the top-left corner of the screen.

Navigate to VPC Infrastructure and select Floating IPs.

For Floating IP name, type a unique floating IP name.

For Location, select the same location from the virtual server instance.

For Resource to bind, select the virtual server instance name that was created.

Select the Reserve IP button.

Copy the Address to use during the installation processes.

Type this SSH command, but with the actual id_rsa file path from ssh-keygen and floating IP from the virtual server instance.

ssh -i ~/./ssh/id_rsa root@FLOATING_IP

Press Enter.

The command line will ask the following question.

Are you sure you want to continue connecting?

Type yes and press Enter to connect to the server.