Want to copy directory from linux machine to windows (SMB) with shell script.
[user@host home]$ smbclient -W WORKGROUP --user='admin%admin$123' -c "put /data/directory" "//192.168.1.1/share" Domain=[mydomain] OS=[Windows Server] Server=[Windows Server] /data/directory does not exist [user@host home]$ cd /data/directory /data/directory [user@host directory]$ ll File1 File2 ..
Here is the issues:
Not accept password even when I use (
even try this
When I remove password from command and shell ask me password it works!
FYI: for transferring directory between Windows and Linux I read about curl, and SSH daemon on windows for scp, do you have any recommendation or simple way, without require additional service on Windows or package on Linux?