I need to transfer files from one computer to a computer on another network using windows. The other computer requires user authentication. It currently works using rsync with Linux and a SSH key. However, I need to do this from a windows machine now. I am trying to do this with Net Use and Robocopy, but I keep getting a “System error 64 has occurred. The specified network name is no longer available.” from the net use command.
My current code:
I have opened up ports 135-139 and 445 both UDP and TCP on the computer’s firewall and the router. Is there something else I need to do to the remote machine or add to my code? I did not set up the remote computer profile, but I am the current sole maintainer of it and can edit is as necessary.
Can someone please also clarify the following;
- I am assuming that using “\pcname.website.com” in NET USE defaults to the user’s home directory. Is this correct? Or does it default to the C: drive?
- What is the purpose of the “IPC$”. I feel like I may be specifying this wrong.
- Can I use SSH with powershell and robocopy?
I am using powershell 2.0. I am new to powershell and networking, but not new to programming.
Thanks in advance.