Digital Masters Magazine

Home of Digital Masters

  • Design
  • Photo
  • Video
  • Web
  • Code
  • UX
  • Mobile
Home Code How to set up SFTP access in Dreamweaver for uploads to Amazon AWS EC2 using OpenSSH key pairs
How to set up SFTP access in Dreamweaver for uploads to Amazon AWS EC2 using OpenSSH key pairs

February 14, 2016 By Digital Masters 1 Comment

How to set up SFTP access in Dreamweaver for uploads to Amazon AWS EC2 using OpenSSH key pairs

For every user of Adobe Dreamweaver comes a time when it’s no longer feasible to work offline: sooner rather than later, you need access to a remote server, (either your staging or your production server, or both). If you are among the lucky ones whose staging or production environment runs on AWS EC2, Amazon’s high-performance low-cost compute cloud, you may hit quite a series of roadblocks before you get Dreamweaver CC/CC 2017 to communicate with your server instance(s). Here is a short and sweet tutorial on how to set up SFTP access in Dreamweaver without exposing your environment to the dangers of unsecured FTP.

A note about FTP: Quit demanding access via FTP from the system administrator of your remote server—and if you happen to be that administrator, don’t bother setting it up. FTP is not worth your precious time. This is a legacy protocol which comes with all sorts of security vulnerabilities that are unfixable. You might even say that FTP is a security vulnerability in and by itself. Stay away from classic FTP. You don’t need it and it’s not good for you.

One of the recommended methods of providing Dreamweaver access to a remote server for file exchange involves the use of SFTP and a key pair consisting of a private key file (which is only known by the authorized user) and a public key (which is installed on the server). This method is different from using a name and a password as access credentials. SFTP access in Dreamweaver is considered vastly more secure that (unsecured) FTP.

Step 1. On your local computer, create a key pair for OpenSSH

Windows users can use PuTTY Generator, a free utility which is part of the PuTTY Project, to generate OpenSSH-compatible key pairs.

Here is a short tutorial on how to create OpenSSH keys on a Windows desktop for remote access to a Linux server.

Step 2. Set up the target server for remote access based on the key pair you created

This step requires root access to the target server instance. In the environment of a typical creative agency, this task is usually performed by a server administrator. For step-by-step details on how to get this done, please refer to this tutorial: “How to set up remote access via SFTP to a web server root directory on RHEL/CentOS/Fedora using key pairs” and this one: High-Stakes, High-Security LEMP Setup: Nginx with MariaDB/MySQL, and PHP 7.x on RHEL/Fedora/CentOS 7 with SELinux.

Step 3. Edit the settings of your site for SFTP access in Dreamweaver

Open the settings dialog for your Dreamweaver site with the command „Site > Manage Sites“. Select the site you want to edit and navigate to the Servers section.

Create a new server or select and edit an existing one.

For SFTP access in Dreamweaver, enter the following information pertaining to your remote server:

  • Connect using: SFTP;
  • SFTP address: any host name that points (in its domain’s DNS configuration) to the instance you want to connect with; in most cases simply the host name associated with your web application such as www.domainname.tld, or the IP address;
  • Authentication: Private Key File;
  • Username: your user name, other than root, that grants you read and write access to the web server document directory tree and its contents (never use root or you will seriously wreck your remote installation, making your web directory inaccessible to your web server!!): this user should be the website owner;
  • Identity File: your private key for authentication;
  • Passphrase: the passphrase that unlocks the key (empty by default, so when prompted for a passphrase, simply hit Enter);
  • Root Directory: the web server root directory you are connecting to (the example below shows a typical NGINX web directory location);
  • Web URL: the URL of your site that would be accessible to a web browser (this should be an HTTPS address).
SFTP access in Dreamweaver: Dreamweaver settings for a Linux instance on Amazon EC2
Dreamweaver settings for a Linux instance on Amazon EC2

Step 4. Test your configuration

Once you have completed this setup, hit the Test button and wait fro Dreamweaver to connect to your EC2 instance.

Dreamweaver_connecting_to_EC2

Step 5. Troubleshoot SFTP connection problems in Adobe Dreamweaver

If you are getting an error message, look at these as potential culprits:

  • the key you are attempting to use in your SFTP access in Dreamweaver is of the wrong type (for example a .ppk key in place of a .pem key)
  • you are not using a passphrase to unlock a key which needs one (or the other way around)
  • you are asking for a non-existing directory or one you are not allowed to access
  • the server address and/or port number you entered do not match the real specs
SFTP access in Dreamweaver: Dreamweaver: an (s)ftp error
Dreamweaver: an (s)ftp error

Step 6. Success! Feel free to celebrate

If everything worked well, you should see a message saying “Dreamweaver connected to your Web server successfully”.

SFTP access in Dreamweaver: Dreamweaver has connected to your web server successfully
Dreamweaver has connected to your web server successfully

Save your freshly confirmed settings for SFTP access in Dreamweaver and you are ready to go!

Filed Under: Code, Design, Tip of the Day, Webmasters' Insights, WordPress Tagged With: AWS, Dreamweaver, EC2, OpenSSH, SFTP

Trackbacks

  1. How to Set Up a Testing Server for Adobe Dreamweaver CS5.5 and CS6 | Digital Masters Magazine says:
    February 16, 2016 at 10:41 pm

    […] update to this post explains How to Set Up Adobe Dreamweaver for Uploads to Amazon AWS EC2 without an FTP Account. 1. Set up your testing […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Treat yourself to the best of our content

Sharing is caring

Tweets by 4digitalmasters
Manhattan beauty

Is this your cup of AI?

Speed is everything: shiny car engine rendering

How to force an older PC to upgrade Windows 10 to Windows 11 when it refuses to go along for the ride

Photo by Warren Wong on Unsplash

The tech revolt. Say goodbye to your favorite search engine that’s been wasting your precious clicks on silly captchas

Change language settings in Adobe Photoshop 2020

How to change the language of Adobe Photoshop

Apple MacBook Pro (16-Inch, 16GB RAM, 1TB Storage) - Space Gray

The new 16-inch MacBook Pro: Faster, slightly heavier but still ultra-light and #WorthTheWait

Change language settings in Adobe Photoshop 2020

If you want to run any of your apps of the Adobe Creative Cloud in another language, you have come to the right place. (There is no need to purchase another license; this is just a setting of your current install.)

Apple MacBook Pro (16-Inch, 16GB RAM, 1TB Storage) - Space Gray

Apple’s new 16-inch MacBook Pro sports even cooler looks than its predecessor. It is also truly different.

What’s up

ActionScript Adobe Adobe CC All-in-One WP Migration Angular 2 Apache Apple assistive technology Belarc Advisor bootable Windows 10 Upgrade DVD crawl disabilities DNG Download tool now Dreamweaver Event Viewer Google GPU HTML iOS iPhone JavaScript Microsoft Windows 10 OpenSSH OS X PayPal performance photos Photoshop PHP product key RAW RSS SEO speed SSD Tim Cook TypeScript upgrade deadline Wall Street Windows Windows 10 Windows 10 Fall Creator's Update Windows 10 free upgrade WordPress

Categories

  • Home
  • Subscribe
  • Advertise
  • Privacy Policy
  • Legal
  • Contact Us

Copyright © 2023 ·Streamline Pro Theme · Genesis Framework by StudioPress · WordPress · Log in