Subversioning in Adobe Dreamweaver CS4
What's covered
- How to setup an Open SSH site on Windows and Mac
- Examples of how to configure SSH access
- How to Setup and add Subversion control to a site
- Troubleshooting
This document addresses how to add and set up subversion control or SSH to a site.
How to setup an Open SSH site on Windows and Mac.
- In your Dreamweaver site definition, choose Version Control from the Category list
- Select Subversion from the Access menu.
- Select SVN+SSH from the Protocol menu.
- Enter your server address in the Server address field
- Enter your Repository path (unless the path is included in the server address) in the Repository path field.
- Specify Server Port if it is not the default port
- Enter the Username and Password in the Username and Password fields (leave both fields empty for anonymous login).
Note: The user name and password are NOT taken from Dreamweaver. The only way to send user is to type user@servername in the server name field. - Press the Test button to test the connection.
Examples of how to configure SSH access.
- Windows users will be using: TortoiseSVN and puttygen clients
- MacOS users will be using: MacOS ssh client
- Windows Vista: C:\Users\USERNAME\AppData\Roaming\Subversion\config
- Windows XP: C:\Documents and Settings\USERNAME\Application Data\Subversion\config
- Mac OS: /Users/USERNAME/.subversion/config
Under [tunnel] section:
- In the terminal, locate the .subversion folder in your user folder mentioned above. : C:\......
- In the tunnels section you need to specify where ssh client exits.
This depends on where you installed it. - Open the file and enter this under the tunnels section ([tunnels]):
ssh = $SVN_SSH C:/pathtosshclient/tortoiseplink.exe - Save and close the config file.
Note: For key, use plink or tortoisplink add -i privatekey. There is also a less secure possibility: -l username -pw password
- In the terminal, locate the .subversion folder in your user folder mentioned above using : ls -al ~/.subversion
- The path to SSH is usually "/usr/bin/ssh",
but if you are not sure, enter: which ssh - Edit the Subversion config file with a text editor (e.g. nano, pico, etc.).
For example, enter: nano ~/.subversion/config - Under the tunnels section ([tunnels]), enter: ssh = $SVN_SSH /usr/bin/ssh
- Close and save the config file.
Steps to create keys on Windows:
- Create the public and private keys (locally).
Run puttygen: Select the number of bits for the key encryption and generate keys. Save both private and public keys (e.g private_key, public_key). - Copy the public key to server (locally).
Ensure that you have access to login to the server and user account that you are attempting to connect to with subversion. Use an ftp or sftp application to put the file on server (e.g. temp_private_key.pub) - Connect to server (locally)
In command line (cmd.exe), run tortoiseplink.exe youraccount@yourserver, or connect with Putty. Enter the user password and log in. - Add keys to authorized_keys (on server)
If the previous step was successful, and you are connected through ssh, enter ls .al ./ssh in the terminal.
If the previous step was unsuccessful, do the following:- mkdir ~/.ssh
- mv ~/temp_privatekey.pub ~/ssh/authorized_keys
- cat cat ~/.ssh/authorize_keys ~/temp_privatekey.pub > temp_keys
- mv temp_keys ~/.ssh/authorized_keys
- Type exit to close the terminal.
- Control settings (locally)
- Return to step 3. You should now be able to log in without a password.
Steps to create keys on Mac:
- Create public and private keys (locally)
If you do not have any files, or a hidden folder called .ssh with files inside:- In the terminal, enter ls -al ~./ssh
- If empty, enter: ssh-keygen -t rsa then answer the questions prompted by the application
- Copy the public key to server (locally)
In the terminal, enter: scp .ssh/id_rsa.pub youraccount@yourserver.com:~/temp_rsa.pub
Enter the password when prompted. - Connect to server (locally)
In the terminal, enter: ssh -l youraccount yourserver
Enter the user password and log in. - Add keys to authorized_keys (on server)
If the previous step was successful, and you are connected through ssh, enter ls -al ./ssh in the terminal.
If the previous step was unsuccessful, do the following:- mkdir ~/.ssh
- mv ~/temp_rsa.pub ~/ssh/authorized_keys
- cat cat ~/.ssh/authorize_keys ~/temp_rsa.pub > temp_keys
- mv temp_keys ~/.ssh/authorized_keys
- Enter exit to close the terminal.
- Control settings (locally)
Return to step 3. You should now be able to log in without a password.
Setup and add subversion control to a site.
- Complete How to setup an Open SSH site on Windows and Mac.
- Close the Site Definition dialog box.
- In the Files panel, choose Local view or Repository view
- Right+click (Windows) or Ctrl+click (MacOS) on the root folder to display the contextual menu.
- Go to Version Control > Get Latest Versions to update the file list.
Troubleshooting
Be sure to use the correct bits in the keys. Using ssh -v (Mac) or plink -v the output from the server will tell you which one the server uses:
Host key fingerprint is: ssh-rsa 2048 la:3e:6b:c4:59:64:af:23:9c:4a:3f:18:f0:17:40:f4
This means that the server uses 2048 bits for the key and is something that you might have to add to the key generator application at the creation of the key.
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
