title: Transfer file using SFTP from Windows to Linux
body: <p>I need to transfer files from my windows based server to my Linux server using SFTP protocol. They are in the same LAN network. </p>
  
  <p>I have enabled SFTP on my Linux server.<br>
  Using: </p>
  
  <pre><code>sudo apt-get install openssh-server
  sudo apt-get install ssh
  </code></pre>
  
  <p>I made a group (I call it sftponly) and a user (abc) for my SFTP server.<br>
  I am using PuTTY as my SSH client in Windows environment.<br>
  In my Windows, I have a text file located in <code>c:/myfile/myfile.txt</code> and I want to upload this file using SFTP into my Linux server </p>
  
  <p>My batch file code looks like:</p>
  
  <pre><code>start putty.exe -ssh 192.168.0.117:4747 -l admin-pw Password -m C:\\test\ssh.txt
  </code></pre>
  
  <p>The contents of my <code>ssh.txt</code> is: </p>
  
  <pre><code>sftp abc@192.168.0.117
  put c:/myfile/myfile.txt
  </code></pre>
  
  <p>I am sure the <code>put</code> syntax is wrong because we are in Windows environment. What is the missing code in my <code>ssh.txt</code> file so I can upload the <code>myfile.txt</code> into SFTP? </p>
  
  <p>The abc user has all the privileges. </p>