How to access VPS remotely via SSH with PuTTY, git bash and terminal
You have bought your new VPS in a quest take your game up. You have been given all the usernames and passwords but do not know exactly how you can access VPS remotely .
Contents
- Requirements
- Access VPS form Windows using PuTTY
- Access VPS from Linux or mac using Terminal or Git-bash
Requirements
I was there once and now, I’m going to share the secret (not really) knowledge of accessing a VPS using SSH or PuTTY. Before we start, lets list out our requirements.
- VPS (goes without saying)
- Root login details with SSH port information (if it has been set to something other than 22)
- An SSH client if you are on windows
- Putty, download it here https://www.putty.org/
- Putty, download it here https://www.putty.org/
OR
- Git bash download it here: https://git-scm.com/downloads , I recommend this as this is basically a swiss army knife if you are on windows.
If you are on any Linux distribution or a mac, you will be able to run SSH command without the client directly through terminal.
So, Neo, its time for us to take the red pill.
If you are using PuTTY as your ssh client
Start PuTTY, you will see a PuTTY configuration screen like the one below.

- Type your hostname, generally IP address of your VPS and port number, if port number is not provided, leave it to 22
- Click on open
- You will see a PuTTY security alert box. Where it shows server finger print and asks you if you trust this server or not. Since, this is your VPS, you will click on yes. It will store server details in your computer and this box will not appear next time.
- After that, you will see a command line interface, where you are asked to type your username and password. If the details are correct, you will get into your VPS. That’s it!
If you are using Git bash or Terminal to access your VPS
- Open git bash or terminal
- Type ssh [email protected]
If you were provided a port other than 22, type this instead
ssh [email protected] -p [port number here]
- After this, you will get the message where it reminds about server’s authenticity and asks to type “yes” if you trust the server. You will type “yes”. This message appears only one.
- After that, you will be asked to enter your password, if your password is correct, you will get into the server.
0 Comments