How to connect to SSH using PowerShell?

It is possible to connect the non-windows target machines with the PowerShell using the SSH command in PowerShell. For that, you need to use the below format.

ssh username@servername

The below example shows how we can connect the non-windows target machine.

PS C:\> ssh ansible@


Once you run this command the first time for any new server the setting will be added to the path .ssh/known_hosts in the user profile.

Updated on: 02-Sep-2021

6K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started