Connect with SSH

To connect to your Linux VM, you use SSH (Secure Shell).


To connect to your VM, first, open a terminal. How you do this varies between operating systems and window managers, but generally:

  • Linux: Search Terminal or press CTRL+ALT+T.

  • macOS: Search Terminal.

  • Windows: Search PowerShell.

If OpenSSH is not installed on your Windows computer by default, see Microsoft’s documentation on how to do this, or use PuTTY instead.

Once the terminal is open, enter the following SSH command. Replace username with the username on the server and replace the IP address (after the @) with your VM’s IP address.

Command

If you have multiple SSH keys, you may need to specify the path of your private key using the -i flag, as in ssh -i /path/to/private/key [email protected].

The first time you log in, the server isn’t identified on your local computer, prompting you to confirm that you want to continue connecting. You type yes and then press ENTER.

The authenticity of host '203.0.113.41 (203.0.113.41)' can't be established.
ECDSA key fingerprint is SHA256:IcLk6dLi+0yTOB6d7x1GMgExamplewZ2BuMn5/I5Jvo.
Are you sure you want to continue connecting (yes/no)? yes

Last updated

Was this helpful?