DEV Community

Aashutosh Poudel
Aashutosh Poudel

Posted on

1

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.

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

đź‘‹ Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay