Writing data on a Windows machine to a Linux machine

8 views
Skip to first unread message

Kurt Buff

unread,
Sep 1, 2023, 7:32:59 PM9/1/23
to ntpowe...@googlegroups.com
Not necessarily looking for code here - more of a question on how to approach the problem so that I can research it - unless of course someone has already solved this problem and can point me to a solution.

I'll be getting ascii data in a variable in a PowerShell script on a Windows machine, and I want to write it directly to a Linux box.

I don't want to write the data to disk on the Windows machine and copy it - I want to write directly to the Linux machine (on the same subnet, which might or might not be relevant) - perhaps open an SSH session to transfer the data, or use some other method.

The target would be a standard Ubuntu workstation - no web server installed, it's standalone, so not joined to the domain, nor does/will it have SAMBA or other SMB file sharing. But it does have powershell and a number of other tools installed.

I suppose one option would be to export an NFS share on the Ubuntu box and mount that - but would that require PowerShell later than 5.1?

Just some semi-random thoughts while thinking through a project - any input appreciated.

Kurt


Michael B. Smith

unread,
Sep 5, 2023, 9:07:39 AM9/5/23
to ntpowe...@googlegroups.com

Depends on how much security you need.

 

Since you have .NET on both sides you can easily use PS to create a simple TCP client/server.

 

You can do Unix look-a-like programming or Streams.

 

Adding in SSL/TLS and AuthenticateAsClient/AuthenticateAsServer is harder, but still quite doable in a few hours.

 

Thanks.

 

Regards,

Michael B. Smith

Managing Consultant

Smith Consulting, LLC

--
You received this message because you are subscribed to the Google Groups "ntpowershell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntpowershell...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/CADy1Ce5PWFcuktj_C7KB3BU1SG%2BjZ9XB-%3Dz342mywS3Daog%3DWg%40mail.gmail.com.

Kurt Buff

unread,
Sep 6, 2023, 10:09:36 AM9/6/23
to ntpowe...@googlegroups.com
Thanks.

I have some studying to do - I think .NET might be the way to go.

Kurt

Reply all
Reply to author
Forward
0 new messages