Pls check this guide about editing files using winscp