DEV Community

Aashutosh Poudel
Aashutosh Poudel

Posted on

How to login to a ssh server from Windows

In windows you need to install a tool like WSL or Git Bash to gain access to ssh or install it by some other ways to your default command prompt like cmd or powershell. I am using the ssh client by MobaXterm.

Accessing your linux server via ssh is super easy.

ssh remote_host

where remote_host is the ip address or domain name of your server.

This assumes that your username on the remote system is the same as your username on the local system

To login with a different username on the remote system use

ssh remote_username@remote_host

where remote_username is the username on the remote system

Additionally we can disable password based authentication, disable login with root account, add login to SSH with our public and private keys.

For further info see this.
For understanding how ssh works see this.

Top comments (0)