I have a ftp server on my Windows server and a Linux VM running on hyper-v, as a part of automation I need to copy a file from Linux to Windows and do some other task using the information from the Linux VM.
Either I have to create a file directly on the ftp server running on Windows or copy that file from the VM using the Linux commands. I tried to copy the file using SSH, but how do I supply password?
echo 'Some Text' | ssh user@remotehost "cat > /remotefile.txt"