Using svn+ssh with Netbeans 5.5 + Windows
by jimmy on Nov.06, 2007, under English, Java, Programming
[Switch to Mobile Edition]After you install Netbeans 5.5 you need to download/install subversion module.
At Netbeans menu select ‘Tools’ – ‘Update Center’ to add subversion module.
If the installation finished, you will see menu Subversion on Netbeans menu.
You’ll also need to install SVN : download page here
I’m using PuTTY’s plink.exe for ssh. You can get PuTTY package here.
Extract PuTTYto a directory and add path to that directory.
How to setting enviroment variables in Windows:
- Open System Properties (by right click ‘My Computer’ – ‘Properties or by press button ‘windows’ + ‘break’)
- Select tab Advanced & click button ‘Environment Variables’
- You can edit System Variable : ‘path’
- Add path to your PuTTY directory. (don’t delete other path, just add with ‘;’ as separator)
- OK
- You can check whether you have correctly add PuTTY’s path by running console (cmd) and run plink.exe without fullpath.
Then open subversion configuration file at : %APPDATA%\Subversion\config
Assuming you using default folder it will be : “c:\Documents and Settings\username\Application Data\Subversion\config”
Open file config using notepad or other text-editor.
Edit the [tunnels] section and add :
ssh = $SVN_SSH plink.exe -l <username> -pw <password>
Of course change the <username> and <password> with yours. lol.
Then save it & restart your Netbeans.
After that you should able to check out/import project via svn+ssh.
- Select menu ‘Subversion’ – ‘Checkout…’
- URL example : svn+ssh://100.1.1.1/opt/subv/myproject/trunk
- Leave username & password empty
- Click next & follow the instructions.
If there’s no errors then Congratulations
Related posts:
- Netbeans 6 – Configure which editor (representative class) for new type extension
- NetBeans IDE 6 final released
- Change junit & run file (main class) working directory at Netbeans 5.5 Web Project
- NetBeans 6 T-shirt
- NetBeans 6 Bug – ConfigurationException Class in Apache Common Configuration is not Throwable?
November 28th, 2007 on 6:12 am
Do you know if this works with NetBeans 6.0 C 2? In 6.0, it asks for the Repository URL, and when you type in the url, it asks for a Tunnel Command. What am I supposed to do there? I typed in plink -l username -pw password again, but it gives me a connection error. Any ideas?
Thanks.
November 29th, 2007 on 6:20 pm
Hi thenava,
Yes, currently I’m using Netbeans 6 RC2.
I think it’s giving you connection error because:
- You haven’t installed PuTTY
or
- You haven’t set putty directory to windows path (at windows system properties)
or
- You haven’t set your tunnel command at file ‘config’ at ‘c:\Documents and Settings\username\Application Data\Subversion\config’
January 12th, 2008 on 1:01 pm
Sorry for the late reply. It turns out it was a server side error. Thanks for reply though!
November 19th, 2008 on 6:22 pm
How i can use SSH directory on work server in Netbeans as source files?
Example as in Zend Development Environment when i’m add FTP Server
November 20th, 2008 on 10:45 am
@Rusha:
I can’t find that either (Netbeans 6.1).
Sometimes I use tortoiseSVN for this purpose.
Eclipse+Subclipse had this browsing feature.
May 8th, 2009 on 5:34 pm
MVTThf comment5 ,
August 24th, 2011 on 12:29 pm
hello guys!! Amazing site!
March 14th, 2012 on 12:03 pm
wonderful points altogether, you simply gained a logo new reader. What might you recommend about your submit that you made a few days ago? Any certain?