Link to home
Start Free TrialLog in
Avatar of DevSupport
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.
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

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
Avatar of DevSupport
DevSupport

ASKER

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

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.

http://www.thomasmaurer.ch/2016/04/using-ssh-with-powershell/
Putty or winscp
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Already answered, but if you have Windows 10 then Bash on Windows may be an option for you:

https://msdn.microsoft.com/commandline/wsl/about