Skip to content

How to edit remote files

dubing edited this page Mar 7, 2013 · 5 revisions

Winscp

1.1. We often want to modify the source code on the server.If you have root permission. you can use scp tools to download file and modify Locally ,When you end the modifications you can upload it by scp. My system is win7,so user winscp.

winscp 1.2 Check the permissions of the file, and use chmod command.

UltraEdit

2.1 Scp Used to upload and download. If you want to modify faster,you can use UE. But you need to set up ftp server first.


$ sudo apt-get install vsftpd`

2.2 Add Ftp User


$ useradd ftp 
$ passwd ftp
   123456 

2.3 update the setting


$ sudo chmod 777 /srv/ftp
$ vim /etc/vsftpd.conf
------

2.4 restart the server


$ /etc/init.d/vsftpd restart 

2.5 config UE

ue