Create SSH Tunnel to access CF Administrator on a Linux server

Expand / Collapse
For this to work, first comment out this section in your Apache configuration and restart/reload Apache.  This may not be present in your Apache configuration however if it does exist it would be in /etc/httpd/conf.d/httpd-security.conf:

<LocationMatch "/CFIDE/administrator/">
order deny,allow
deny from all
#allow from EWH and local
allow from 127.0.0.1
allow from 69.63.128.150
</LocationMatch>

Once you have commented out or removed the section, set up a SSH tunnel by following the steps below.  The alternative for accessing CF admin on a Linux server is to secure the page with an SSL and force SSL for the page.

Windows

1) Open Putty (download it here http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html).
2) In the Host Name section put the server name you want to connect to. Leave the default port as 22.
3) On the left hand side expand SSH then click Tunnels.
4) In the Source Port section put the port you want to connect to.  In this example we will use port 8081.
5) In the Destination section put server.name:port (ex. vmXXX.edgewebhosting.net:80) where port is the port you are connecting to and server.name is the servers FQDN.
6) Click Open and you will be connected to an SSH session. Authenticate using your username and password. 

Once putty is authenticated, you should now be able to access CFIDE administrator by using:

http://localhost:8081/CFIDE/administrator/

Mac

Open Terminal or your application for connecting to the server via SSH.  From there, enter the following:
ssh -L 8081:localhost:80 username@server (for example ssh -L 8081:localhost:80 root@vmXXX.edgewebhosting.net)
Enter in your password at the prompt.  Then open your browser and navigate to http://localhost:8081/CFIDE/administrator and you can connect to CF admin.





Rate this Article:


Details
Category: Apache

Last Modified:Tuesday, November 05, 2013 1:12 PM

Type: HOWTO

Level: Beginner

Rated 4 stars based on 1 vote

Article has been viewed 3,171 times.

Options
Email Article Email Article


Social Bookmarks Social Bookmarks