sublime連接Linux進行文檔編輯

sublime連接Linux進行文檔編輯

1.組件安裝

1.用Package Control安裝插件:按下Ctrl+Shift+P調出命令面板

2.輸入:install ,調出 Install Package 選項並回車

3.然後輸入sftp,下拉列表中會出現一些相關的插件,選中sftp進行安裝就行。

插件安裝過程可以查看Sublime左下角的狀態欄的信息。

等待安裝完成。

2.新建連接

選菜單欄中的File->SFTP/FTP->Set up Server,會出現一個配置文件,只需要在其中輸入地址信息與用戶和默認路徑就行,點擊保存。
保存地址問題:很多時候sublime默認路徑在根目錄,這樣保存是沒有作用的,必須要保存在sublime指定的目錄下,一般是:C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Packages\User\sftp_servers,如果你的用戶不是管理員請找到自己的路徑進行保存

{
// The tab key will cycle through the settings when first created
// Visit http://wbond.net/sublime_packages/sftp/settings for help

// sftp, ftp or ftps
"type": "sftp",

"sync_down_on_open": true,
"sync_same_age": true,

"host": "47.101.141.93",    //服務器地址
"user": "root",             //用戶名
//"password": "password",
//"port": "22",

"remote_path": "/",         //默認路徑
//"file_permissions": "664",
//"dir_permissions": "775",

//"extra_list_connections": 0,

"connect_timeout": 30,
//"keepalive": 120,
//"ftp_passive_mode": true,
//"ftp_obey_passive_host": false,
//"ssh_key_file": "~/.ssh/id_rsa",
//"sftp_flags": ["-F", "/path/to/ssh_config"],

//"preserve_modification_times": false,
//"remote_time_offset_in_hours": 0,
//"remote_encoding": "utf-8",
//"remote_locale": "C",
//"allow_config_upload": false,

}

3.連接服務

配置完成以後連接服務器,在軟件底部會輸入密碼,輸入完成就能夠連接成功,只需要選擇相應的文件進行編輯即可,保存將會同步到服務上。

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章