SFTP in Sublime Text 3 not working - ftp

I'm having the strangest problem.
On a fresh Sublime Text 3 installation, I'm trying to get SFTP (wbond) to function.
I've tried following the documentation, but can't get it to work. I've followed this to a tee, but for some reason my installation acts differently to the same input.
I've installed package manager, sidebar enhancements and SFTP from wbond.
In the linked Youtube video, when he goes to "browse" an FTP server and there isn't one setup, it jumps to a new file automatically where he can input his data. Mine just pastes the content of this file directly into the document I'm in.
If I create a new document, go File > SFTP/FTP > Setup Server... and input my FTP data (that works perfectly fine in clients such as Filezilla) and save, nothing happens.
If, afterwards, I go File > SFTP/FTP > Browse Server... I get a popup asking me to setup a new server, even though I just did.
I feel like I'm not seeing the forest for the trees here, and I'm probably missing something simple.
Any help you can provide is greatly appreciated.

File turns out needs to be saved in
%USERPROFILE%/AppData/Roaming/Sublime Text
3/Packages/User/sftp_servers/
folder.
It can be accessed in Sublime 3 clicking Preferences->Browse packages...

Related

How to try to understand why the connection to hosts in PhpStorm occurs?

The situation is as follows: everything worked perfectly, PhpStorm worked without problems with FTP on the Remote Host tab. But at some point, it suddenly stopped doing it and when I open the project and try to view the contents of the host(s), this happens:
I can not click the [...] button to check the host(s) settings. If I connect to host(s) through another ftp client, everything works fine.
Question: how do I understand what the problem may be, and eliminate it?
Based on your idea.log file the issue seems to be with KeePass file that IDE is uses to store your credentials (logins and passwords). You can check the path to that file at Settings/Preferences | Appearance & Behaviour | System Settings | Passwords
It's either inaccessible (has access permissions issue .. or wrong Master password) .. or is somehow corrupted.
Try this: close IDE, go there, backup that file (just in case) and try to open it with some another program that understands such KeePass format. That's to see if it's good inside.
If it's bad/cannot be used -- just delete it and IDE will create a new one on next launch.

Directly edit files of an FTP server using Atom

I have tried time and time again to get remote-edit working within atom. I have added my known working FTP server, click on the Browse Hosts button, and attempt to connect. I am 100% sure the username and password are correct. I don't know what kind of data to provide, other than it worked once, but has never worked again.
From a look at the source, remote-edit prints all errors to the console. To open the console, open the View menu, then browse to Developer and click Toggle Developer Tools. Or use the shortcut CmdAltI (it's probably CtrlAltI on Windows.) This should help finding the cause of your problem.

How to automatically FTP files that I am editing

I'm trying to figure out how to autoftp with Filezilla. Are there any other programs that do this right off the bat?
I use WinSCP for some of its amazing benefits. I connect to my FTP server with WinSCP and let it monitor my local folder /website/public_html.
Any changes I make in my local folder automatically get uploaded to my FTP server by WinSCP. The feature is called Keep remote directory up to date:
http://winscp.net/eng/docs/task_keep_up_to_date
As for SCSS, I also use it:
I have a script that opens a console window to watch my /website/scss files and compiles them to /website/public_html/styles/. WinSCP sees the CSS file has changed (or is new) and automatically uploads it.
Notice: The only downside is you cannot reach your error_log as that is automatically generated on the server by PHP. To do this you can easily instantiate another WinSCP to connect to your website. Now you have 1 WinSCP monitoring your local folder and 1 WinSCP where you can access your site map.
If by "autoftp" you mean "update the file on the server whenever I save it" and you're working with code, then I'd recommend the wonderful Notepad++
Notepad++ certainly is wonderful for this particular function and it even saves a cache of the whatever has been accessed and modified from the remote server.
The downside however (for me) is that Notepad++ will not auto-upload preprocessed CSS files like .scss or .less. I tried actually opening the resulting .css files in Notepad++ to mimic the act of editing them, but that still puts an extra step in the process. I have to click over to the tabs and manually save them (after the 'your file as changed prompt').
Currently, after I make changes, I click over to FZ and upload the files manually.
This response is late, but hopefully it will be helpful to those looking to get past Filezilla's "do you want to overwrite" prompt every time a file being edited locally is saved. Unfortunately, the Filezilla developers are staunchly opposed to making this behavior optional. It is a problem for many, especially when working with limited desktop space, since every time the prompt appears, one must expose the hidden filezilla window just to click okay.
Anyway, the answer is WinSCP. It is also free and is so similar to filezilla that I needed no learning to use it immediately.
Cheers!
There is an easier way to do that with NetBeans IDE, there is an option to upload files with FTP or SFTP on save, manually or on Run
Right click on your project and click Properties
Click the second category run configuration
Run As: Choose Remote Website (FTP,SFTP)
Project Url: put your website live link eg www.example.com
Upload files: Choose On Save
Remote Connection > Manage > Add > Connection name (put one) > FTP
Now add your ftp details. Make sure your Initial directory path is correct, (your website path) so you will not accidentally replace any files from other website in the file manager
Unfortunately there no option on filezilla can auto agree upload when file has been changed.
Mobaxtern can do that. You can choose "always upload" when file has been changed.
You can edit the file with any editor, whenever you save, it will upload.
I like to use WebDrive ($40) which mounts a remote server (S)FTP/SSH/Cloud to a local drive (eg. X: on Windows). You can then just do everything to drive X: as if it's a local drive and WebDrive automatically uploads the changes to the remote server.

Can Notepad++ automatically upload local files to the server when I save?

I use Notepad++ with its NppFTP plugin. I am required to keep local copies up to date, so I edit the local files then upload them to the server. I'm wondering if there is a way for Notepad++ to automatically upload the file to the server as soon as I save it, without me having to press another button.
I'm open to using other FTP programs but I would rather stick with Notepad++ as the text editor
I know this question is slightly dated, but I would just like to put out there to alleviate future confusion for anyone who tries to find an answer to this question that as far as I know, NppFTP currently does this by default. There is a window beneath the main file view area that informs you of current FTP operations. Dreamweaver has started crapping out on me regularly so I had to find an equally powerful solution; it seems like Notepad++ just might be that!
Instead of trying to do this solely with Notepad++, I've gotten a similar workflow using Filezilla as well.
I set Notepad++ as my default text editor (Edit -> Settings -> File Editing -> Use Custom Editor) in Filezilla.
I can right-click on a local file (in Filezilla) and press "edit". Whenever I save the file in Notepad++, Filezilla detects the difference and prompts me to upload the file.
Will reply back to this post once I can get this process to be completely automatic.
Researching about same problem , i found from the Notepad++ Plugin Manager NppNetNote plugin. It allow you to edit both files at time (Local and remote) wich is like edit local and publish.
Edit: I'm sorry. Mistake. Now that plugin is called NppDocShare, and acts as server/client for a live document. You can edit a file from two locations (Notepad++ executions) at twice, but cannot edit two files nor emulates the autoupload.
I'd try the #Gabriel Ryan Nahmias and he's just RIGHT. The NppFTP plugin does that you wanna, but is a little tricky (obvious when you do) to configure.
By default, the program uses a variable path (Global cache: %CONFIGDIR%\Cache\%USERNAME%#%HOSTNAME%) to store the local copy that is uploaded at save. You need to create a pair folder when create a ftp CONNECTION PROFILE to say to NppFTP plugin how you wanna threat the file/connection. Otherwise, the ftp file goes to global.
Once the profile is created, i.e; C:\myfolder\ vs / (/ is relative to ftp) any file Edited or Created will be created/autouploaded to FTP at save. Also, you can open the FTP file, and it will be threated as the local one. Untill you save that, the real local file is not overwritten. If you dont like the file from FTP, simply close file and open from the local folder. So, you can chose which document wanna edit at start :)
Works Like Magic. Now im in love with Notepad++ :)
Extra: The subfolder creation is not magic. This only works from FTP to Local. You can edit a file from FTP subfolder and the folder plus file will be reproduced into local. No way to create from Local to FTP. You must create the ftp subfolder by hand :X (Unexpected)
You can manage files by two ways. Creating a profile per folder/proyect or create multiple local cache directories to a single profile. BUT, only the first one will be available (You will reorder it on each use). No magic here :( and it's more easy to create profiles and choose from the droplist at connect.
Anyway, i think the NppFTP is doing the things very well.
I had the same problem. Solved updating the NppFTP plugin to the latest stable version.
Cheers!

Filezilla download works fine, but command line FTP changes file?

Sorry if this is a repeat question. I've looked at other threads, but while there are other questions that are similar, none appear to truly address this question:
I have the two files that are needed on an ftp server. If I use filezilla to drag and drop them into a folder, I can run the files as expected. If I get the files through command line ftp ("out of the box" ftp in Windows 7), the icon looks different. Instead of the nice pretty red "Adobe Air" icon it has when I drag and drop it, it has a generic windows type icon with a little shield and a little padlock in the bottom corners of the icon. I checked the file permissions, but those appear to be the same. One thing that is definitely different is that when I drag and drop the file w/ Filezilla, it appears to still have a digital signature from adobe (it is the adobe air installer exe file). When I use the command line ftp, it looks like it loses the digital sig for some reason. I'm not sure if that is truly the problem though. Oh, and the command line ftp'd version does not run even if I use run it as admin.
The actual ftp command I'm using is:
ftp -s:myfile.txt ftp.myftpsite.com
where myfile.txt contains the following:
anonymous#myftpsite.com
get AdobeAIRInstaller.exe C:\AdobeAIRInstaller.exe
quit
Oh, and the reason this is a problem is because when I drag and drop the SweepsCoachClient.air file, it runs and installs fine. When I use command line ftp, it fails to run and install.
Thanks in advance!
Add "binary" command to your script - it looks like the file is transferred in text mode.

Resources