Topics Map > Communication and collaboration > cPanel web hosting

cPanel, How to use Dreamweaver to publish HTML pages on cPanel

You can use SFTP to connect Dreamweaver to cPanel. The easiest method for you will depend on whether the domain name matches your NetID or not.

NetID matches domain name: NetID and password OK

If you're using yournetid.web.illinois.edu, you can use your NetID and NetID password to make your connection.

  1. Use the Site Setup tool to create a new Dreamweaver site definition.
  2. Under Local, choose the directory on your computer that you wish to use for your Dreamweaver working directory for this site.
  3. Under Servers, click the + button to add a new server definition.
  4. Fill out the window as follows. (Substitute your own NetID where you see the word yournetid below.)
    1. Server name: yournetid.web.illinois.edu SFTP
    2. Connect using: SFTP
    3. SFTP address: yournetid.web.illinois.edu
    4. Port: 22
    5. Authentication: Password
    6. Save password: Your choice whether to check or not
    7. Click Test.
    8. If the test connection succeeds, click Save. 
    Dreamweaver dialog box

NetID different than domain name: Keys needed

If your NetID is different than your domain name – we're using yoursitename as an example below – then you'll need to generate SSH keys.

  1. Create a SSH key pair as described below.
  2. Use your private key with Dreamweaver's SFTP server connection process. 

Creating Keys

If you already have a SSH key you can use, you can skip this section and use it in Dreamweaver (described below). 

If you need a new key for yourself or for another user, CPanel has a built-in mechanism for generating SSH keys. Please use a different key for each user.

  1. Choose SSH Access from your cPanel Dashboard
  2. Click Manage SSH keys
  3. Click Generate new key
  4. Fill in the form with the key name, password, key type, and key size
  5. Click Generate Key
  6. Click Go Back
  7. Find your key in the list of Public Keys and click Manage
  8. Click Authorize, then Go Back
  9. In the Private Keys section, click View/Download
  10. Download your key and store it in a private location on your computer. (Don't place it in a shared folder or cloud synchronizing folder.)

Configuring Dreamweaver to use SFTP with Keys

  1. Use the Site Setup tool to create a new Dreamweaver site definition.
  2. Under Local, choose the directory on your computer that you wish to use for your Dreamweaver working directory for this site.
  3. Under Servers, click the + button to add a new server definition.
  4. Fill out the window as follows substituting your site's name where you see yoursitename below:
    1. Server name: yoursitename.web.illinois.edu SFTP
    2. Connect using: SFTP
    3. SFTP address: yoursitename.web.illinois.edu
    4. Port: 22
    5. Authentication: Private key file
    6. User name: This is the cPanel Account name. You can find it in the top navigation bar of your cPanel Dashboard.
    7. Identity file: On your computer, select the private key you downloaded in step 9 above.
    8. Passphrase: Enter the password you created in step 4 above.
    9. Save Passphrase: Check the box to save the passphrase.
    10. Dreamweaver server check window
  5. Click the Test button to check whether you can make a successful connection. 
    1. If not, double check your private key file, your password, and whether the NetID you're using is the primary account owner for this site. Also double check that the private key you're using is listed as Authorized in cPanel (step 8 above).
  6. Once you've completed a successful test, click Save.
  7. Your new server definition will appear in the list of available servers in Dreamweaver. Click Save again.
  8. Dreamweaver will rebuild its cache


Keywords:
cPanel, web hosting, Dreamweaver, HTML, web publishing 
Doc ID:
84972
Owned by:
Web H. in University of Illinois Technology Services
Created:
2018-08-17
Updated:
2024-01-24
Sites:
University of Illinois Technology Services