Press "Enter" to skip to content

How to connect to server via SSH with IP address (Host) & password

One of the major things behind people turning down cloud hosting is the fact that it involves a lot of technicality. To set up server or to run any command, users do need to connect to their server using SSH. In terms of shared hosting, all this is managed by the service providing company.

In this short tutorial, I am going to share guide using which, you can connect to your server via ssh using password, IP address and username. The tutorial shared here covers the steps for Windows as well as Mac OS. On Windows, I use Putty Client and on Windows, I use the inbuilt, Terminal. If you have any queries, feel free to reach out to me in the comment section or you can even mail me at [email protected]

Let’s get started.

How to connect to a server via SSH with host name (IP address) and password on Windows using Putty

Putty is a SSH and Telnet client available for Windows, Linux and Mac. Putty does a decent work in helping you with majority of networking needs including SSH etc. In this, we are going to use Putty for connecting to a server via SSH on Windows.

Before getting started, I assume you have downloaded and installed Putty on your Windows Computer. Once done, follow the steps below

  • Open putty. The initial screen looks like the one below
    Putty homescreen
  • In connection type, make sure you have SSH selected. Now, enter the host name. It can be either an IP address, or a lengthy domain like structure. Enter the same in Host Name field and make sure the port field shows 22.
  • Click on Open. The moment you do that, a new window with black background will open asking you for username.
    Enter username Putty
  • Enter your username and press enter (return key). The username is most cases will be root or Ubuntu. If you are using an Ubuntu server, the username will most likely be Ubuntu. Or if you are using other sort of server, the user name will be accordingly. If you are unaware about what username you should use, check with your host before proceeding.
  • The screen will now ask you to enter the password.
    Enter password Putty
  • Enter your password and press the return key.
  • If your credentials are right, you will get the below screen. If not, you will be asked to enter your password again.
    Welcome Screen SSH putty
  • That’s it. You are now connected to your server via SSH. You can now perform all your tasks.

How to connect to a server via SSH with host name and password on Mac using Terminal

Mac has an inbuilt program for all such networking needs. Terminal on Mac does a pretty decent job for SSH and all other networking needs. To connect to your server using SSH, you will need to use commands based procedure.

Let’s get started

  • Open terminal and type the below command
    ssh -i [email protected] or IP address
  • Make sure you enter the correct username and IP address or hostname of your server. Once done, press return key.
  • The terminal will now ask for your password to authenticate and connect to your server. Enter the password and once again press return key.
  • You will see the welcome screen and that means, connection to the server using SSH has been established.

That’s it in the tutorial. Let us know if you have any queries and I will try my best to help you out. You can ask your queries in the comment section below or email to me at [email protected]

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *