title: Python: How to create a file in a local server?
body: <p>I am used to connect to a local server by using putty. But now I need to create a file by using a script python, this file has a huge size, so I must put it in local server;</p>
  
  <p>by using puty, I must entre my host adresse, password, name and the port. </p>
  
  <p>How do I do that? </p>
  
  <p>This is my script:</p>
  
  <pre><code>import numpy as np
  import glob
  import os
  P_Result_File_Path ="Path_To_the_Result_File"
  Folder_path =r'Path_To_my_numpy_files'  
  os.chdir(Folder_path)
  npfiles= glob.glob("*.npy")
  npfiles.sort(key=os.path.getmtime)
  print (npfiles)
  loadedFiles = [np.load(npf) for npf in npfiles]
  PArray=np.concatenate(loadedFiles, axis=0 )
  np.save(Power_Result_File_Path, PArray)
  </code></pre>
  
  <p><code>P_Result_File_Path</code>  file has a huge size, so I need to save it in a local server, the problem in this case that <code>Path_To_the_Result_File= /home/user/result.npy</code>, so this path is unknown, I need to connect to this server in order to create and put the resulted file. </p>