Avatar of DevSupport
 asked on

Running linux commands into linux system remotely using powershell

Hi Experts,

I was looking for the best way to run linux shell commands in linux system from a windows system remotely using powershell and batch.

Please let me know the best way to do it.
LinuxPowershellWindows Batch

Avatar of undefined
Last Comment
Gerwin Jansen

8/22/2022 - Mon
John Tsioumpris

Usually the way to run commands to remote Linux system is via Putty...if my memory serves me right i never saw running commands for Linux via powershell

can we use new-sshsession to connect to linux system and execute shell commands?


Microsoft thoughtfully added SSH support into PowerShell so you can SSH to the linux box and even script it.
More details can be found here.

Your help has saved me hundreds of hours of internet surfing.
Natty Greg

Putty or winscp

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Gerwin Jansen

Already answered, but if you have Windows 10 then Bash on Windows may be an option for you: