I am a beginner with sublime text 3. Previous I worked with dream viewer. When I was working with dream viewer, Generally I do keep my project folder in D drive and add new local server in htdoc folder using dream viewer add site option.
Now I need to use sublime text 3 as same I did with dream viewer. I setup a new server using FTP plugin as below
// sftp, ftp or ftps
"type": "ftp",
"sync_down_on_open": true,
"sync_same_age": true,
"host": "127.0.0.1",
"user": "root",
"password": "ashan",
//"port": "22",
"remote_path": "/xampp/htdocs/sanka_d/",
My remote connection as below (sftp-config.jason)
"type": "ftp",
"save_before_upload": true,
"upload_on_save": true,
"sync_down_on_open": false,
"sync_skip_deletes": false,
"sync_same_age": true,
"confirm_downloads": false,
"confirm_sync": true,
"confirm_overwrite_newer": false,
"host": "127.0.0.1",
"user": "root",
"password": "ashan",
//"port": "22",
"remote_path": "/",
When I try to connect with remote server it says below error message.
Connecting to FTP server "127.0.0.1" as "root" ........ failure (Disconnected)
Please help me solve this, Thanks!
Related
I've installed ftp-simple on vs-code (I can connect with FileZilla) and
I pressed F1, typed config:
[
{
"name": "dev-server",
"host": "192.168.0.140",
"port": 21,
"type": "ftp",
"username": "user",
"password": "12345",
"path": "/var/www/WebApp",
"autosave": true,
"confirm": true
}
]
Pressed F1 again, remote directory open to workspace..and nothing happens.
I've noticed it does take quite a while, you have to be patient, it will load the remote structure eventually. Once loaded, then save as a Workspace.
I am trying to connect to my cpanel server using sublime text 3.
Server is added successfully. And remote path is also validated successfully.
But when try to Sync Remote->Local it is just not happening.
{
// 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",
"save_before_upload": true,
"upload_on_save": true,
"sync_down_on_open": false,
"sync_skip_deletes": false,
"sync_same_age": true,
"confirm_downloads": false,
"confirm_sync": true,
"confirm_overwrite_newer": false,
"host": "XXXXXX",
"user": "XXXXX",
"password": "XXXXXXX",
"port": "21",
"remote_path": "XXXXXX",
"ignore_regexes": [
"\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
"sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
"\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
],
//"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,
}
And in the console I finally got this:
"Select via quick panel? No".
And the process got terminated by itself.
SFTP has some options for that to put on your sftp-config.json file at the root of your folder :
Set those values like this:
"confirm_downloads":false,
"confirm_sync":false,
"confirm_overwrite_newer":true
I'm trying to connect my Atom to a Hostek hosting by FTP ... and their FTP connections will require Explicit FTP over TLS (FTPES).
{
"protocol": "ftp",
"host": "ftp.mysite.com",
"port": 21,
"user": "myuser",
"pass": "**********",
"promptForPass": false,
"remote": "/",
"secure": false,
"secureOptions": null,
"connTimeout": 10000,
"pasvTimeout": 10000,
"keepalive": 10000,
"watch": []
}
Probably late, but you'll want to use "secure": "control".
Now, for the cert verification error, you'll need to add:
"secureOptions" : {
"rejectUnauthorized": false
}
So the connection does not fail when cert verification does. This may introduce security risks: Node.js Hostname/IP doesn't match certificate's altnames
Probably a simple solution, just never encountered the problem before.
I try to upload lets say welcome.blade.php which is located in
resources/views/welcome.blade.php
but sublime is just uploading to the root instead.
I'm using the SFTP package for this and have not encountered this issue before.
The stftp-config file remote path is correct..so I cant figure out what this could be.
Here is the sftp-config file
{
// 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",
"save_before_upload": true,
"upload_on_save": false,
"sync_down_on_open": false,
"sync_skip_deletes": false,
"sync_same_age": true,
"confirm_downloads": false,
"confirm_sync": true,
"confirm_overwrite_newer": false,
"host": "their_host",
"user": "their_user",
"password": "",
//"port": "22",
"remote_path": "/domains/theirsitename.com/html/",
"ignore_regexes": [
"\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
"sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
"\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
],
//"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": true,
}
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
Hope this helps you, it 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>"]
}
See: https://stackoverflow.com/a/17310355/1858217
Use sftp_flags as following, it should work.
"sftp_flags": ["-i", "/Users/username/pemfile.pem"],
In windows you should use this syntax.
"ssh_key_file": "/Users/Diego/Documents/SSH/Key.ppk",