Knowledge Base

How to publish and edit files with UltraEdit

This article describes how to publish and edit files to an A2 Hosting server using UltraEdit. UltraEdit also provides SSH functionality that you can use to access your A2 Hosting account from the command line.

Publishing and editing files on an A2 Hosting server

With UltraEdit, you can edit files directly on the server. Additionally, you can create files on your local computer, and then upload them to the server.

Before you can do either of these tasks, however, you must first set up an SFTP (Secure File Transfer Protocol) account in UltraEdit. To do this, follow these steps:

  1. On the File menu, click FTP/Telnet, and then click FTP Account Manager.
  2. Click Add account.
  3. On the General tab, in the Account text box, type a name for the account.
  4. In the Protocol list box, select SFTP.
  5. In the Server text box, type your domain name (for example, example.com).
  6. In the Port text box, type 7822.
  7. In the Username text box, type your A2 Hosting account (cPanel) username.
    If you do not know your cPanel username or password, you can use the A2 Hosting Customer Portal to view it. For more information, please see this article.
  8. In the Password text box, type your A2 Hosting account (cPanel) password.
  9. If you do not want to retype your password every time UltraEdit connects to your account, select the Save password check box.
  10. Click Apply, and then click OK. You are now ready to publish and edit files on the server.
Editing files on the server

UltraEdit enables you to edit files directly on the server. To do this, follow these steps:

  1. On the File menu, click FTP/Telnet, and then click Open from FTP.
  2. In the list box, select the name of the FTP account that you created in the previous procedure, and then click Connect.
  3. If UltraEdit asks if you want to store the key in the cache, click Yes. After UltraEdit connects to the server, a directory listing of your account appears.
  4. Select the file that you want to edit, and then click Open.
    Alternatively, you can just double-click the file.
  5. Depending on the file's format, you may receive the following message:
    Do you want to convert filename to DOS format?

    Because A2 Hosting's servers run Linux, you should normally click No to maintain the UNIX/Linux file format. Only convert the file to DOS format if you are sure you want to do so.

  6. Make the changes to the file that you want, and then on the File menu, click Save.

    Alternatively, you can press Ctrl-S.

  7. UltraEdit saves the changes to the file on the server.

Publishing files to the server

In addition to editing files on the server directly, you can create new files in UltraEdit, and then upload them to your account. To do this, follow these steps:

  1. In UltraEdit, create a new file or open an existing file.
  2. On the File menu, click FTP/Telnet, and then click Save As to FTP.
  3. In the list box, select the name of the FTP account that you created in the previous procedure, and then click Connect.
  4. If UltraEdit asks if you want to store the key in the cache, click Yes. After UltraEdit connects to the server, a directory listing of your account appears.
  5. Navigate to the folder where you want to save the file.
  6. Confirm the filename or type a new filename, and then click Save. UltraEdit uploads the file to the server in the directory you specified.

Using SSH to access the command line

In addition to file editing and upload capabilities, UltraEdit includes SSH (Secure Shell) console functionality. You can use this to access your account from the command line. To do this, follow these steps:

  1. On the File menu, click FTP/Telnet, and then click SSH/Telnet Account Manager.
  2. Click Add account.
  3. On the General tab, in the Account text box, type a name for the account.
  4. In the Protocol list box, select SSH.
  5. In the Server text box, type your domain name (for example, example.com).
  6. In the Port text box, type 7822.
  7. In the Username text box, type your A2 Hosting account (cPanel) username.
    If you do not know your cPanel username or password, you can use the A2 Hosting Customer Portal to view it. For more information, please see this article.
  8. In the Password text box, type your A2 Hosting account (cPanel) password.
  9. If you do not want to retype your password every time UltraEdit connects to your account, select the Save password check box.
  10. Click Apply, and then click OK.
  11. On the File menu, click FTP/Telnet, and then click SSH/Telnet Console.
  12. In the list box, select the name of the account that you specified in step 3, and then click Connect.
  13. If UltraEdit asks if you want to store the key in the cache, click Yes. After UltraEdit connects to the server, a command prompt appears in the console window where you can type commands.
    For an introduction to Linux commands and the command line environment, please see this article.

More Information

For more information about UltraEdit, please visit http://www.ultraedit.com.