Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Netbeans, can you do SSH connection for PHP Projects?

Tags:

ssh

netbeans

Netbean is great and I use it with FTP remote connection all the time. However, one of my client currently only have a SSH connection. Is there anyway to connect to it and up/down files?

like image 654
Bill Software Engineer Avatar asked Jan 28 '12 15:01

Bill Software Engineer


3 Answers

Like it was mentioned, SFTP is supported in Netbeans by default. So select "remote connection" in your project's run configuration and use your SSH connection information (host, login and pass). You don't have to provide any private key file.

like image 60
Jevgenij Evll Avatar answered Nov 21 '22 20:11

Jevgenij Evll


I've had luck using sshfs (ssh file system) on ubuntu. I create created a mount folder in my home folder and run the following

$ sshfs domain\\user@server:/path/to/remote/folder ~/mount/local-mount-point

From there I start a new (or existing) project in Netbeans at that local folder ~/mount/local-mount-point

For a nicer set up, do a key exchange between your local box and the server (ssh-copy-id) for password-less ssh connections. Then, put the above command line in your .bashrc file.

like image 32
Rick Avatar answered Nov 21 '22 21:11

Rick


I do the same as Richard.

In general is easier just to mount the remote filesystem and use netbeans in the mounted directory.

I just do the following :

sudo sshfs -o allow_other [email protected]:/var/www/html /mnt/droplet/
like image 30
CTala Avatar answered Nov 21 '22 22:11

CTala