Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Private Key File for SFTP in NetBeans

I'm trying to configure Netbeans for automatically upload PHP files to an SFTP server (I have not admin permissions in that server).

Everything is OK, except that Netbeans launches a warning each time it needs to upload something:

The authenticity of host ... can't be established. RSA key fingerprint is XX:XX:XX:,,,, Are you sure you want to continue connecting?

How can avoid being prompted every time? I suppose specifying the private key file is enough but don't know how to generate that file. Can you help me? (Suppressing the warning by other way will be ok too.)

like image 735
Addev Avatar asked Dec 18 '11 17:12

Addev


People also ask

How do I generate an SFTP private key file?

The first place you can generate an SFTP private key file is in the Key Manager, which can be reached via the JSCAPE MFT Server Manager and hence can only be accessed by a server admin. The second place is via the JSCAPE MFT Server Web User Interface and can be accessed by anyone with a user account on the server.

How do I add a private key to FileZilla pro?

Right-click the icon and select “Add Key” and select your private key (PPK) file. Follow the prompt to enter your pass phrase and you’re done. Now simply launch FileZilla Pro and connect to your server using SFTP using SSH2 with a username and an empty password.

What do I need to connect to an SFTP server?

Before connecting to an SFTP remote server, you’ll need some connection information: The address of the server, and its port number if it uses a non-standard one. Your user ID for the server. This might be different to your usual login for the site.

How do I connect to FileZilla Pro using SFTP?

Now simply launch FileZilla Pro and connect to your server using SFTP using SSH2 with a username and an empty password. Don’t forget to close pageant when you’re done.


1 Answers

This is not too easy to understand from the gui, but it really is quite simple.

First, you need to create an empty text file that Netbeans will write to, call it knownhosts.txt.

Point to this file in the Known Hosts File field in your configuration. (Right-click on your project in the Projects window, choose Properties from the pull-down menu; select Run Configuration in the Project Properties dialog; and then click Manage Connections... Now you should see the Known Hosts File field where you can Browse to your empty text file.)

Test the connection.

That's it!

like image 123
Bjørn Otto Vasbotten Avatar answered Sep 17 '22 19:09

Bjørn Otto Vasbotten