Connect to Instance
Once your DewaVPS Instance is created and running, you can connect to it to manage it, install software, and host your applications. There are typically two primary ways to connect: using SSH (Secure Shell) for command-line access, or using a web-based VNC console provided through the DewaVPS control panel.
To connect, you will generally need:
- Instance IP Address: Found in the DewaVPS control panel after the Instance is created.
- Username: The user you want to log in as (e.g.,
root,ubuntu, or another user you created). The default user often depends on the OS image chosen during creation. - Authentication Method: Either the password you set during creation or an SSH key you associated with the Instance.
- SSH
- VNC
Connecting via SSH
SSH provides a secure command-line interface to your Instance. This is the most common method for managing Linux servers.
Prerequisites:
- An SSH client program.
- Linux/macOS/Windows (WSL or modern versions): The
sshcommand is usually built into the terminal. - Windows (older versions): You might use a client like PuTTY.
- Linux/macOS/Windows (WSL or modern versions): The
- Your Instance's IP address.
- The correct username for your Instance.
- Your password or SSH private key.
Steps (using terminal):
- Open your terminal application (Terminal on macOS/Linux, PowerShell or Command Prompt on Windows, or PuTTY).
- Use the
sshcommand in the following format:ssh username@your_instance_ip_address- Replace
usernamewith the appropriate login user (e.g.,root). - Replace
your_instance_ip_addresswith the actual Public IP address of your DewaVPS Instance.
- Replace
- Press
Enter. - First Connection: If this is the first time connecting to this Instance from your computer, you'll likely see a message about the host's authenticity and its key fingerprint. Example:
Verify the fingerprint if possible, then type
The authenticity of host '192.0.2.1 (192.0.2.1)' can't be established.
ECDSA key fingerprint is SHA256:AbCdEfGhIjKlMnOpQrStUvWxYzABCDEFGHIJKLMN.
Are you sure you want to continue connecting (yes/no/[fingerprint])?yesand pressEnterto add the Instance to your list of known hosts. - Authentication:
- Password: If you're using password authentication, you will be prompted to enter the password you set for the user during Instance creation. Type the password (characters may not appear on screen for security) and press
Enter. - SSH Key: If you associated an SSH key with the Instance and your local private key is correctly configured, you should be logged in automatically. If your private key is protected by a passphrase, you will be prompted to enter it.
- Password: If you're using password authentication, you will be prompted to enter the password you set for the user during Instance creation. Type the password (characters may not appear on screen for security) and press
Once authenticated, you will see the command-line prompt for your DewaVPS Instance.
Accessing via VNC on Browser
DewaVPS provides a web-based console access using VNC (Virtual Network Computing). This allows you to interact with your Instance directly from your browser, which is useful for initial setup, troubleshooting network issues, or accessing a graphical desktop environment if one is installed on the Instance.
Steps:
- Log in to your DewaVPS control panel.
- Navigate to the Instances or Servers section where your Instances are listed.
- Locate the specific Instance you wish to access.
- Look for an option "Access Console" button associated with that Instance. Click on it.
- A new browser tab or window should open, displaying the console screen of your Instance. It might take a moment to connect.
- You will likely see a login prompt within the console window (similar to what you'd see on a physical monitor connected to the server).
- Enter the username (e.g.,
root) and pressEnter. - Enter the password associated with that user when prompted and press
Enter.
You should now be logged into your Instance's console environment directly within your web browser.