X

An Oracle blog about NetBeans for PHP

SFTP support added

Guest Author

Recently, many of you asked for not only FTP support but also SFTP -
yesterday we fulfilled your wish so everyone can easily try it now. Of course, one has to download the development version of NetBeans or wait for the first milestone of the next NB version (after NB 6.5).

Meanwhile, let's setup and use our first SFTP connection...

1. Create a new SFTP connection - create a new Run Configuration (Remote Web Site) and Manage Remote connections.

Create a new connection

Creating a new SFTP connection

2. Provide all the details and test the connection.

Testing SFTP connection

3. Try to upload some files.

Upload file

4. And watch the log if everything goes fine...

SFTP log

5. ... and your files are successfully stored on your server.

SFTP log

6. That's it!


As you can see, the behaviour is the same like for our FTP support so nobody should have any problem with it, I hope. And of course, like every time, please, let us know how you enjoy it and whether it works for you (if not, please report all the issues or enhancements to our IssueZilla, component PHP, subcomponent ftp_support).

Thanks a lot.


Join the discussion

Comments ( 31 )
  • Joaquín Fernández Campo Tuesday, November 18, 2008

    Is it stable enough for everyday use? I understand it's a nightly build so I'm not expecting much stability. Thanks, Joaquin!


  • Petr Tuesday, November 18, 2008

    The dev build, doesn't contain any changes from NB 6.5 so far. So I think that the dev build now is usable. You can always return to the NB 6.5, if you will save your userdir or user different userdir for the dev builds.

    Regards,

    Petr


  • Stefan Sturm Tuesday, November 18, 2008

    Hello,

    I took a look at the sftp feature, but I'm missing some features:

    - upload only "on run" what is about "on save"?

    - possibility to synchronize the local project with the server

    - excluding files( and folders ) from uploading( and syncronization )

    That's for a first try.

    Greetings,

    Stefan Sturm


  • Daniel Dimitrov Thursday, November 20, 2008

    Will it be added as plugin so we don't have to download the development version, but the plugin instead?


  • Petr Thursday, November 20, 2008

    Hi Daniel,

    this is good question, but I don't think so. I you don't believe to the dev builds, then you can wait for the first milestone. I think it's planned for December.

    Regards,

    Petr


  • Michal Friday, November 21, 2008

    Hello,

    Write on blog something about sql content assist in php editor - this is nice stuff :)


  • Tim Thursday, December 4, 2008

    SFTP/FTP is good, but this really needs to have up/down SFTP synchronization (like eclipse does) to make the task of managing a remote site easier.


  • Christoph Tuesday, December 16, 2008

    I agree with Stefan. The feature "Upload on save" is a "must-have" in my opinion.

    Since Netbeans supports PHP I miss it really often.


  • uzo Wednesday, January 28, 2009

    1. possibility to add selected folders only

    e.g. i want to add folders like includes, class, tools, but not export_files, invoices_files

    2. saving file uploads the file - i wouldn't expect any other behavior then this


  • kristo Thursday, February 5, 2009

    Ohh i just need to move linux -> windows. And now try use netbeans. Fist think seems, i like it. PUT i can't work remote files :( (sftp, need all file download, ok this not very big problem)

    I can add to upload shortcut ctrl+s and then save and upload work same time. but this ugly upload windows popup (and even focus not OK button) and console come up. Who need this upload console and upload window. Can remove this boring thind.


  • Joaquim Homrighausen Tuesday, February 17, 2009

    It's great that this is being added, but I'm also surprised that this hasn't been an issue before. I mean, it's 2008/2009; what project \*isn't\* run/edited/managed remotely? When we started using ZDE (Zend) some time ago, it didn't have support for SFTP either, and we really had a \*loud\* argument with them about this before it was added.

    Of course it should work just like editing local files. Click on a file in the explorer, the IDE checks for an update on the remote, and if updated, ask to re-load. When I switch to the buffer where a remote file is stored, the same thing should be done. Saving should be done immediately on the remote.

    We're looking into use NetBeans instead of Zend (based on recommendations from others); but until SFTP is fully functional, it won't happen -- we really need it. For PHP, C/C++, and for general scripting management. It's great for our users that don't know (or don't want to know) about Emacs ;)


  • australianmade.com.au Thursday, February 19, 2009

    +1 for the upload on save.

    It's a huge feature that's required.

    Could initial folder have a browse button as well? That would make it a lot simpler for non-developers.


  • Paul O'Rorke Saturday, February 21, 2009

    I agree with the need for this functionality. I have been evaluating Netbeans to use as an alternative to Quanta Plus but until this works seamlessly it isn't going to happen. Too bad it looks good otherwise.

    Keep up the good work.


  • Gameplayer Thursday, March 5, 2009

    I tried this feature whith the 6.7 M2 release, and it works well, but I don't like to write password at every action, and I also don't like to store password at a lot of places. I use ssh with an ssh agent to store my private key when working, maybe Netbeans can use this agent to connect to the sftp server ?


  • leo Saturday, March 7, 2009

    hei,

    good job, but wouldn't it be better, when i'm trying to run project, it only offers to upload changed files?


  • Robin Speekenbrink Monday, March 16, 2009

    I too have been looking into NetBeans as a full replacement of the outdated but otherwise fully functional ZDE 5.5

    The support for remote filesystems (like SFTP) is great, but just doesnt quite cut it yet...

    Having to download (all!) files and not being able to use the version control (in my case SVN) on that remote system is a dealbreaker... Now i have to down- and upload all my files from and to my (remote) developmentserver and meanwhile keep a SSH session open to complete my SVN commands... This clearly isnt where its supposed to be (IMHO)

    Is there any roadmap for this featureset? (been testing with build 200902231810)


  • benni Thursday, March 26, 2009

    Hi,

    I tried sftp today first time and think theres a lot to develop. For example a possibility to synchronise. So that on an upload only newer files will be overwritten. The same for downloads. Or (already said) the upload on save.

    Another thing is, that netbeans always ask if the RSA fingerprint should be saved or not. There should be a possibility to save it for every connection to this server. Its annoying to klick on OK each up- or download.

    However I want to say you: good job. It's more than no sftp support.

    greetings from germany

    benni


  • Nimmr Thursday, March 26, 2009

    First of, this is not a flaming of your work, I like to see Netbeans at least getting a step closer to finally replacing ZDE for us. For now it's either Eclipse or Netbeans that our candidates, but I'd rather go with netbeans since Eclipse just seems like it really wants to crash, and I just have a gut feeling (after a lot of tries to switch to both IDEs) that Netbeans is better for me.

    As I said we're still using ZDE 5.5 at our Typo3 company because of one thing (well, mainly), it has built in SFTP support and you don't have to create projects all the time.

    We administer ~150 Typo3 sites and ~30 self built php (some by other companies) sites spread out on 10 servers. Creating a project for (in typo3's case) something that can't be parsed for intellisense/autocomplete/call-it-what-you-like is just a waste of time, and even if auto completion did work I would probably not even create projects anyway, except for sites I work on alot.

    What we need is a simple server-browser like ZDE/Explorer/Tree-view where we can quickly get into business by picking the file in the tree, and when we save, it dosn't come up with a dialog/confirmation-box/progressbar-in-your-face, it just saves. I would imagine that I do ~1000 saves a day so they need to be discrete and fast.

    I'm surprised to see others comments about them still using ZDE as well. 5.5.0 is what, 3 years old and discontinued for lesser product filled with bugs.


  • automatix Thursday, June 4, 2009

    Hello!

    In my NetBeans IDE 6.5.1 (Build 200903060201) I have no Option "Remote Website (FTP, SFTP)" in Run Configurations -- only "Remote Website (FTP)" -- and I have only one Type-Option "FTP" in the Manage Remote Configuration dialog.

    How can I activate the SFTP feature?

    Thanks,

    Ilya


  • Webagentur Sunday, June 7, 2009

    Thank you ... this has me very helped.


  • Kamil Rudnicki Tuesday, June 9, 2009

    Are you planning to implement FTPS?

    For this time there is no PHP IDE that support this...


  • Smash Wednesday, June 10, 2009

    Hello

    SFTP is an awsome addon, but I've small question.

    After I download the project, the "go to declaration" option is not working. Is this a known bug or my mistake ?

    Is there any method to activate this ?


  • guest Thursday, July 2, 2009

    In my NetBeans IDE 6.5.1 I have no Option Remote Website (SFTP).

    How can I activate the SFTP feature?.


  • Olaf Monday, November 30, 2009

    Any news about FTPS (FTP over SSL) support? It is much more widely used.


  • Víctor Robles Friday, December 18, 2009

    I agree with Olaf, the FTP over SSL support is really neccessary, hope you guys can add it.


  • Alex Tuesday, January 5, 2010

    @benni

    [Windows solution]

    To have the remote key automatically imported (and not be forced to press ok every time) just create a known_hosts file in \\Document and Settings\\<your account>\\ folder and it will be added there.

    [Linux]

    In linux the file should be ~/.ssh/known_hosts but never tried that...yet.


  • Kevin Saturday, February 27, 2010

    FTPS / FTPES would be really great!!!!


  • Csaba Monday, April 5, 2010

    FTPS would be very nice indeed.


  • cristian Tuesday, September 28, 2010

    this would be great.

    Too bad I can't use it, I need FTPS


  • vm Thursday, February 24, 2011

    ftp over ssl +1


  • ps Friday, June 17, 2011

    Neatbeans is a great IDE for PHP, but for some developers FTPS is a must. Is it so hard to integrate it?

    Thank you!


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.