xSh*_*ase 10 sftp amazon-ec2 sublimetext2
我使用Sublime文本SFTP在我的远程服务器上工作,当我按下Ctrl-S时,它会自动上传到远程服务器.但是,在我的EC2服务器上,Ctrl-S只保存本地临时文件,我需要使用上下文菜单SFTP>上传文件进行保存.
任何启用ctrl-s远程保存的选项?
这是我使用的config.json:
"type": "sftp",
"sync_down_on_open": true,
"sync_same_age": true,
"host": "xxx.amazonaws.com",
"user": "xxx",
"remote_path": "/var/www",
"connect_timeout": 30,
"ftp_passive_mode": true,
"ssh_key_file": "D:\\xxx.ppk",
"remote_time_offset_in_hours": 1,
Run Code Online (Sandbox Code Playgroud)
我尝试了以下方法:"save_before_upload":true,"upload_on_save":true,sftp_flags而不是ssh_key_file但到目前为止没有任何工作
And*_*ble 24
希望这对你有所帮助,它对我有用.
{
"type": "sftp",
"sync_down_on_open": true,
"host": "<your ec2 instance hostname>",
"user": "<your username>",
"remote_path": "<your remote path>",
"connect_timeout": 30,
"sftp_flags": ["-o IdentityFile=~<path to .pem file>"]
}
Run Code Online (Sandbox Code Playgroud)
请参阅:https://stackoverflow.com/a/17310355/1858217
小智 11
使用sftp_flags如下,它应该工作.
"sftp_flags": ["-i", "/Users/username/pemfile.pem"],
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12330 次 |
| 最近记录: |