SFTP/FTP插件的安装
1.sublime下的配置
①.ctrl+shift+p 呼出搜索框,输入 install package;
回车,再次输入 FTP,找到SFTP/FTP插件安装即可
②.成功后,点击菜单 File->SFTP/FTP->Setup Server来生成一个配置文件,修改后,保存即可
注意保存的路径是 菜单 Preferences > Browse 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": "ftp", "sync_down_on_open": true, "sync_same_age": true, "host": “xxx", "user": "xxx", "password": "xxx", //"port": "21", "remote_path": "/home/xxx", //"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": 1, //"remote_encoding": "utf-8", //"remote_locale": "C", //"allow_config_upload": false, }
③.点击菜单File->SFTP/FTP->Browse Server来连接服务器
也可以用 ctrl+alt + r+b 来打开