create a script named greet.ps1
$ vi greet.ps1
#/usr/bin/env pwsh
write-host "🤡"
create a script named greet.ps1
$ vi greet.ps1
#/usr/bin/env pwsh
write-host "🤡"
install openssh
$ pkg install openssh
run sshd (default port is 8033 not 22)
$ sshd
PS > $exp = "python -c `"import json, datetime; print(json.dumps({'date': datetime.datetime.now().strftime('%Y%m%d')}))`""
PS > Invoke-Expression $exp | % { convertfrom-json $_ }
date
----
20210222
PS >
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 |