Tuesday, August 6, 2013

Use alternate SSH port with Zend Studio

To connect Zend Studio to a remote server using an alternate, non-standard SSH port (that is, other than port 22) you will do the following:
  • Create the connection.
  • View the properties of the connection.
  • Edit the port in the connection "Subsystem"

Create the connection

and specify only the hostname or IP address. Do not worry at this point about the port number. For instance, do not try to append the port to the hostname.

    Window | Open Perspective | Other | Remote System Explorer

    Window | Show View | Remote Systems


    Right-click in the blank area in the Remote Systems view, select New Connection then select SSH Only, click Next.

    Enter Host Name, Connection Name (a name for display purposes only), uncheck Verify host name, and click Next, th

    Under Available Services, click on Ssh / Sftp File Service, then click Finish.

    View the properties of the connection

    Expand the connection you just created, right-click on Sftp Files, and select Properties.  Click on Subsystem, and change the port number in the pane on the right. Click OK.

    Use the connection to view the remote files.

    Expand Sftp Files, expand either My Home or Root, enter the password (optionally selecting Save password) and click OK.