• Home
    »
  • Ubuntu Server Settings

How To Connect To Ubuntu Server?

You can connect to a Ubuntu server from a Windows computer using various methods. Before connecting to the Ubuntu server remotely from the Windows computer, you have to install the open-source SSH client (OpenSSH tool). On your Windows computer, you can install the PuTTY client. In Linux-based computers, the SSH client is already installed. Carry out the steps to know how to connect to Ubuntu server.

how to connect to Ubuntu server


To check whether you have an SSH Client on your Linux computer, follow these steps.

  1. First, launch the Terminal app by pressing the Ctrl + Alt + T shortcut keys.
  2. Enter ‘ssh’ in the Terminal window and press the Enter key to know how to connect to Ubuntu server.
  3. If you have already installed the SSH client, you will receive the response for the command.
  4. If you have not received any response, install the OpenSSH client.
  5. To do so, launch the Terminal app and then type ‘sudo apt-get install openssh-client‘ and press the Enter key.
  6. If prompted, enter your system password and hit the Enter key.
  7. To check whether you have installed the OpenSSH server on your Linux computer, type ‘ssh localhost‘ in the Terminal window and hit the Enter key.
  8. If you have not installed the SSH server, type ‘sudo apt-get install openssh-server‘ in the Terminal window and press Enter to install it on your computer.

Carry out these steps to connect to Ubuntu from your Windows computer using the PuTTY SSH client:

  1. On your Windows computer, launch the PuTTY client.
  2. In the PuTTY Configuration window, type the remote server’s IP address (Ubuntu) and select SSH as your connection type.
  3. Enter port number 22 in the Port field and click the Open button.
  4. Enter the username and password of the remote server user in the Terminal window.
  5. Now, you have successfully logged in to the Ubuntu server.
  6. You can run any command to manage it.
  7. Alternatively, you can use Windows PowerShell to connect to the Ubuntu server.
  8. Finally know how to connect to Ubuntu server.