Post
Topic
Board Mining (Altcoins)
Re: [ANN] TeamRedMiner 0.7.19 - Nimiq/Kawpow/Ethash/Etchash/Cryptonight and More
by
tcsekhar
on 13/12/2020, 01:06:57 UTC
Found it. Here is how I'm doing it now:

WINDOWS POWERSHELL SCRIPT:

$secpasswd = ConvertTo-SecureString "LINUXPASSWORD" -AsPlainText -Force
$Credentials = New-Object System.Management.Automation.PSCredential("LINUXUSERNAME", $secpasswd)

$SessionID = New-SSHSession -ComputerName 'LINUXIPADDRESS' -Credential $Credentials
$o = (Invoke-SSHCommand -Index $sessionid.sessionid -Command 'echo "{\"command\":\"devs\"}" | nc localhost 4029' | ConvertTo-Json) | ConvertFrom-Json
echo ($o.Output | ConvertFrom-Json).DEVS | ConvertTo-Json