You will now launch an instance with an oracle Linux image and primitive shapes. More advanced options are also available, check out the calculations for more information.
You've created a virtual cloud network (VCN) and a public subnet. For more information, see Creating a Virtual Cloud Network.
If you are connecting to an instance from a Windows system that does not have OpenSSH, you need to create an SSH key pair. For details, see Creating a Key Pair.
Open the navigation menu and click Calculate. Under Calculations, click Instances.
Click Create Instance.
Enter a name for the instance, for example: "Your initials" - instance. Avoid entering confidential information.
In the Deployment section, accept the default available domain.
In the Mirrors and Shapes section, make the following selections:
In the Image section, accept the default Oracle Linux.
6.Tip If you are creating an ARM-based Ampere A1 compute instance, select an Oracle Linux Cloud Developer image. Oracle Linux Cloud Developer provides the latest development tools, languages, and Oracle Cloud Infrastructure Software Development Kits (SDKs) to jumpstart a comprehensive development environment. Oracle Linux Cloud Developer images require at least 8 GB of memory. 7.In the Shape section, click Change shape. Then, do the following:
For instance types, the default virtual machine is accepted.
For Shape Family, select one of the following options:
If you don't have a preference for the type of processor, select AMD, then select VMstandard.e4.flex shape or vmstandard.e3.flex shape (either is acceptable). These shapes are flexible shapes. Accept defaults for ocpus and memory.
To create an Always Free eligible Ampere A1 compute instance with an ARM processor, select Ampere, and then select VMstandard.a1.flex flexible shapes. Accept the default value of ocpus (1 ocpu). If you selected an Oracle Linux Cloud Developer image, for the amount of memory (GB), drag the slider to allocate 8 GB of memory to the instanceOtherwise, accept the default value (6GB RAM).
To create an instance with an AMD processor that is Always Free qualified, select Professional and Previous Generation, and then select VMstandard.e2.1.micro shape.
Click to select a shape.
In the Network section, configure the network details for the instance:
For the primary network, leave the option to select an existing virtual cloud network.
in Virtual Cloud Network: Select the cloud network that you created. If necessary, tap Change Department to switch to the department that contains the cloud network you created. For subnets, leave the Select existing subnets option.
Subnets in : Select the public subnet that was created with your cloud network. If necessary, click Change Department to switch to the department that contains the correct subnet. Select the Assign a public IPv4 address option. This creates a public IP address for the instance, which you need to access the instance. If you are having difficulty choosing this option, confirm that you have selected a public subnet created with the VCN and not a private subnet.
Note
All tenants get two public IPv4 addresses for free to compute instances. If you want to create more than two free instances, you can create instances without assigning a public IP address.
In the Add SSH Key section, generate an SSH key pair or upload your own public key. Select one of the following options:
Generate a key pair for me: Oracle Cloud Infrastructure generates an RSA key pair for the instance. Click Save Private Key, and then save the private key on your computer. Optionally, click Save public key, and then save the public key. Warning: Anyone with access to the private key can connect to the instance. Please store your private key in a safe place.
Important To use the key pair generated by Oracle Cloud Infrastructure, you must access the instance from a system that has OpenSSH installed. UNIX-based systems (including Linux and OS X), Windows 10, and Windows Server 2019 should have OpenSSH. For more information, see Manage key pairs on Linux instances.
Upload the public key file (.).pub): Upload the public key portion of your key pair. Browse to the key file you want to upload, or drag and drop the file into the box. To provide multiple keys, hold down the Command key on your Mac or the Ctrl key on Windows while selecting the file.
Paste the public key: Paste the public key portion of your key pair inside the box.
No SSH Key: Select this option only if you do not want to use SSH to connect to the instance. After you create an instance, you cannot provide a public key or save a key pair generated by Oracle Cloud Infrastructure.
In the Boot Volume section, leave all options unchecked.
Click Create. The instance is displayed in the configuring state in the console. Expect the configuration to take a few minutes, after which the status will be updated to Running. Please do not refresh the page. After the instance is running, wait a few more minutes for the operating system to boot before attempting to connect.
In order to connect to the instance in the next step, you need its public IP address.
To obtain the public IP address of an instance, perform the following steps:
Click on the instance name to view its details.
The public IP address and username are shown on the detail page of the instance access section, as shown in the following image:
Before proceeding, make a note of the public IP address.
Use a Secure Shell (SSH) connection to connect to a running Linux instance. Most Linux and UNIX-like operating systems include an SSH client by default. Windows 10 and Windows Server 2019 systems should include the OpenSSH client, which is required if you created an instance with an SSH key generated by Oracle Cloud Infrastructure. For other Windows versions, you can putty from a free SSH client.
This topic describes how to connect to the instance that you created in this tutorial. To connect to an instance created by someone else, ask that person to add you to the instance (see Adding Users to an Instance).
Before you begin
You know the public IP address of the instance. For more information, see Starting a Linux Instance.
You know the path to the private key file. Use SSH to connect to a Linux instance Use SSH to log in to the instance. Depending on the operating system you are connected to, use one of the following methods.
Connect to a Linux instance from a Unix-style system.
Use OpenSSH to connect from a Windows system to a Linux instance.
Use Putty to connect from a Windows system to a Linux instance.
Connect to a Linux instance from a Unix-style system.
Use the following command to set file permissions so that only you can read the file:
chmod 400
is the full path and name of the file that contains the private key associated with the instance you want to access. Use the following ssh command to access the instance:
Note
Copy the following example to ensure that the correct characters are used. If inssh -i
with the wrong characters, you may fail to resolve the hostnamecould not resolve hostname ..no such host is known
: Unknown host, etc.
ssh -i @
is the full path and name of the file that contains the private key associated with the instance you want to access. is the default username of the instance. For Oracle Linux and CentOS images, the default username is OPC. For Ubuntu images, the default username is Ubuntu. is the IP address of the instance that you retrieve from the console. Use OpenSSH to connect from a Windows system to a Linux instance.
If your instance is using a key pair generated by Oracle Cloud Infrastructure, follow the steps below.
If this is your first time using this key pair, then you must set file permissions so that only you can read the file. Follow these steps:
In Windows Explorer, navigate to the private key file, right-click on the file, and then click Properties.
On the Security tab, click Advanced.
On the Permissions tab, for the Permissions entry, under Principal, make sure your user account is listed.
Click Disable Inheritance, and then select Convert inherited permissions to explicit permissions on this object.
For Permission entries, select each permission entry that isn't your user account and click Remove.
Make sure that access to your user account is fully controlled.
Save your changes.
2.To connect to an instance, open Windows PowerShell and run the following command:
Note
Copy the following example to ensure that the correct characters are used. If inssh -i
with the wrong characters, you may fail to resolve the hostnamecould not resolve hostname ..no such host is known
: Unknown host, etc.
ssh -i @
is the one that contains the private key associated with the instance you want to access. The full path and name of the key file. is the default username of the instance. For Oracle Linux and CentOS images, the default username is OPC. For Ubuntu images, the default username is Ubuntu. is the IP address of the instance that you retrieve from the console. If this is your first time connecting to this instance, you need to accept the fingerprint of the key. To accept fingerprints, type yes and press enter.
Use Putty to connect from a Windows system to a Linux instance.
The SSH private key file generated by Oracle Cloud Infrastructure is not compatible with Putty. If you are using a private key file that was generated during instance creation, you must convert the file to a . ppk file.
NoteIf you change the file permissions of the key to connect from a Windows system using OpenSSH, the key cannot be used for Putty connections. Use openSSH instead.
Convert the generated.key
Private key file:
Open puttygen.
Click Load and select the private key that was generated when you created the instance. The key file has a name extension. key。
Click Save private key.
Give the key a name. The extension of the new private key. ppk。
Click Save. Note
puttygen will not override. key file, instead create an additional file with the same name with the extension.ppk
Use. The ppk private key file is connected to the Linux instance
If your instance uses a key pair that you created using the putty key generator, use the following steps.
Open Putty.
In the Categories pane, select the session and enter the following:
Hostname (or IP address):
is the default username of the instance. For Oracle Linux and CentOS images, the default username is OPC. For Ubuntu images, the default username is Ubuntu. is the public IP address port of the instance that you retrieved from the console: 22
Connection Type: SSH
In the Categories pane, expand the window, and then select Convert.
In the Remote Character Set menu, select UTF-8. The default locale on a Linux-based instance is UTF-8, which will configure Putty to use the same locale.
In the category pane, expand Connections, expand SSH, expand Authentication, and then tap Credentials.
Click Browse, and then select. ppk private key file.
Click Open to start the session.
If this is your first time connecting to an instance, then you may receive a message saying that the server's host key is not cached in the registry. Click Yes to continue connecting.
Note
If the connection fails, and you are not behind the Putty configuration, make sure the Type in the putty configuration is set to None. If you are after the Hostname, select the Type and enter the hostname and port number. See also Update the putty tool to fix other putty issues.
Run the management task on the instance
When you log in as the default user opc, you can run administrative tasks using the sudo command.
As an Oracle Premier Partner, Agilewing has revolutionized the way users experience Oracle Cloud Services. Agilewing provides a simplified account opening process and first-class technical support, so that users do not need to have a complicated and cumbersome account opening process, as well as complex operations. One-stop service, quickly complete the opening and activation of cloud services, and you can easily obtain various services of Oracle Cloud.
AgileWing's AgileCDN integrated CDN service is perfectly combined with OCI cloud basic services to provide global content acceleration solutions for business internationalization. Customers can enjoy network efficiency and stability from more than 2,800 global POP nodes and more than 7,000 direct connection points. This means that no matter where your business is located in the world, Agilewing ensures that it runs efficiently.
Agilewing leverages the advantages of Oracle Cloud to help build cloud services, migrate clouds, and expand your business overseas, eliminating the need for the complex process of researching and exploring Oracle Cloud Services on your own. This partnership model provides customers with a cost-effective solution that allows them to focus on their core business while enjoying the high performance and security of Oracle Cloud.
Oracle Cloud Services is an area of potential, with high performance, security, and globally consistent service standards that offer endless possibilities. With Agilewing's professional services, users and enterprises alike can easily enter this new world and take advantage of all the benefits of Oracle Cloud. Start your Oracle Cloud Services journey now with Agilewing and explore this new era of innovation and performance.