Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

I use Sublime text SFTP to work on my remote servers, and when I hit Ctrl-S, it uploads automatically to the remote. However, on my EC2 server, Ctrl-S only saves the local temp file, and I need to use the context menu SFTP > Upload File to save.

Any options to enable the remote save on ctrl-s?

Here's the config.json I use :

"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,

I tried the following : "save_before_upload": true, "upload_on_save": true, sftp_flags instead of ssh_key_file but nothing has worked so far

1 Answer

0 votes
by (44.4k points)

This worked for me:

{

    "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>"]

}

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Aug 4, 2020 in AWS by Amyra (12.9k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Aug 4, 2020 in AWS by Amyra (12.9k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...