Access an Elastic Compute Instance
Last updated
Last updated
After creating elastic compute instances, you can remote control and manage them. Several remote access methods are listed below.
RDP (Remote Desktop Protocol) RDP is a remote desktop protocol commonly used for remote management of Windows operating systems. You're recommended to remote connect to a Windows elastic compute via RDP.
SSH (Secure Shell) SSH is a command-line based remote management tool that uses a secure network protocol. SSH is widely used in UNIX-like operating systems, including Linux, BSD, and macOS. You're recommended to use Terminal or Windows PowerShell to establish an SSH connection to non-Windows elastic compute instances.
RFB (Remote FrameBuffer) RFB is a protocol used for graphical remote management. VNC (Virtual Network Computing) is a common remote graphical management tool based on the RFB protocol used in UNIX-like operating systems. VNC login provides a graphical desktop environment, allowing you to interact with the instance visually. VNC protocol is also widely supported across multiple operating systems and platforms, which is more flexible and compatible. You're recommended to remotely access and control the graphical interface of your elastic compute instances via VNC.
These protocols and tools offer various ways to remotely access and manage virtual machines. RDP provides a graphical interface for Windows virtual machines; SSH offers a command-line interface for remote management of UNIX-like virtual machines, and VNC enables graphical remote management of virtual machines regardless of operating systems.
Here we take a Linux instance (Ubuntu-test
) and a Windows instance (Windows-test
) as examples to demonstrate how to remote access them using you local computer.
Ubuntu-test
Default username: ubuntu
Password: Test+123
Windows-test
Default username: Admin
Password: Test+123
Note
See Create an Instance for detailed information about how to create an elastic compute instance.
Your instance will be associated with one security group at least while being created. To remote access successfully, please ensure the security group allows traffic on the following ports: TCP 22 ( for SSH), TCP 3389 (for RDP), and ICMP port (used for network management and debugging).
The steps below may vary depending on the operating system and applications you are using. You may need to use different commands or tools to perform the same actions.
When you need to access a Linux instance, you can use SSH. Assume a macOS Terminal and a Windows PowerShell.
If you have deployed the SSH public key to your server, you can also using the SSH key for authentication without entering a password.
Ensure the virtual machine has SSH enabled and is running.
Obtain the public IP address of the virtual machine you want to access, that is a Linux instance (Ubuntu-test
). You can find this information in the instance list page on zenConsole. Here is 113.31.99.141
.
Open the Terminal application on your macOS computer. You can find it in the Applications > Utilities folder, or you can use Spotlight to search for it.
In the Terminal, use the SSH command along with the IP address of the instance to establish a remote connection. The command syntax is as follows:
Press Enter, and Terminal will attempt to establish an SSH connection to the instance. If this is your first time connecting to the instance, you may be prompted to confirm the authenticity of the host by verifying its key fingerprint. Type yes
to proceed.
After the SSH connection is successfully established, you will be prompted to enter the password for the selected username on the instance. Here provide Test+123
and press Enter.
Once authenticated, you will have a Terminal session open on your macOS computer, but with the remote virtual machine's command-line interface. From here, you can execute commands and perform administrative tasks on the instance.
When you need to access a Windows instance, you're recommended to use RDP.
Ensure that the Windows instance is running and has RDP enabled. RDP is available by default on Windows operating systems.
Obtain the public IP address of the instance, that is a Windows instance (Windows-test
). You can find this information in the instance list page on zenConsole. Here is 113.31.99.255
.
Open the Remote Desktop client application on your local computer. This application is built into Windows, and you can find it by searching for "Remote Desktop" in the Start menu.
In the Remote Desktop client, enter the public IP address, that is 113.31.99.255
, of the instance in the "Computer" field.
Click Connect to initiate the connection.
If prompted, enter the credentials for the user account on the instance.
- Default username: Admin
- Password: Test+123
Once authenticated, the Remote Desktop client will establish a connection to the Windows instance. You will see the virtual machine's desktop displayed on your local computer.
You can now interact with the Windows instance as if you were sitting in front of it. You can run applications, access files, configure settings, and perform any other tasks you would normally do on a Windows desktop.
Remember to ensure that the necessary firewall rules are configured on both the virtual machine and your local machine to allow RDP connections.
You can remote access a Linux instance via VNC.
You can remote access any virtual machine via VNC on zenConsole. Please obtain the public IP address of the virtual machine you want to access before remote access. Here we take the Linux instance (Ubuntu-test
) as an example.
Default username: ubuntu
Password: Test+123
Go to elastic compute instance list page, find the instance and click Actions > VNC Access.
Enter the default username: ubuntu
, and press Enter. Terminal will attempt to establish an SSH connection.
Enter the password for the instance. Here provide Test+123
and press Enter.
Once authenticated, the VNC will establish a connection to the virtual machine. You should see the VM's desktop or graphical interface displayed in the VNC client window.
You can remote access a Windows instance via VNC.
You can remote access any virtual machine vis VNC on zenConsole. Please obtain the public IP address of the virtual machine you want to access before remote access. Here we take the Windows instance (Windows-test
) as an example.
Go to elastic compute instance list page, find the instance and click Actions > VNC Access.
Click OK, enter and confirm your new password to change the system-generated password.
Wait for your instance being accessed and then configure your local server.
The protocols and access methods mentioned above provide convenience and flexibility in different scenarios. You can choose the way that best suits your needs to remotely access and manage your virtual machines, whether it's using a graphical user interface or a command-line interface.
(optional) You can paste your code on the Clipboard and click to quick run your command.
Click on the left bar to unlock and click Sign in.