Local testing on Linux and Mac
Linux and Mac come with all the tools necessary to do local web application cross-browser testing in Browserling. It will take you less than 5 minutes to get going. Here's what you need to do:
- Step 1 - upload your public ssh key to your account.
- Step 2 - open and use the tunnel.
Uploading the public key to your account
Both on Linux and Mac your public key is located in the
.ssh (dot ssh) directory in your home directory. Open the Linux shell or the Terminal application in OSX and type
cd ~/.ssh. This command will transfer you to the directory where your public (and private) keys are located:
~/.ssh directory contains your public and private keys.
(If you get an error, then you don't have a private/public key yet! Type
ssh-keygen -t rsa -C "firstname.lastname@example.org" to generate your keys.)
cat id_rsa.pub or if you get error type
cat id_dsa.pub to output your public key to the screen so you can copy it:
cat id_rsa.pub or
cat id_dsa.pub to output your public key to the screen.
Copy the key and navigate to the SSH key management page in your Browserling's account to upload it. Paste it in the ssh key text box and press
Paste the public key in the text box and click
You can add as many ssh keys as you like. If you use multiple computers, you can add the public key of every computer. Once you've done that, you can use the ssh tunnels to cross-browser test sites locally from every computer!
Using the SSH tunnel for local testing on Linux and Mac
To open a tunnel, start using Browserling and click the
SSH Tunnel menu and choose
Linux/Mac as your platform. Enter the
hostname:port of your local web server. For example,
localhost:8080. You can also tunnel local area network servers, not just your localhost. For example, you can tunnel
host:port of your local web server and click
Open tunnel and wait a few seconds. Browserling will open a tunnel for you. Copy the
ssh -NR ... command and paste it to the command line.
Next, paste the
ssh command to the command line:
ssh command to the shell.
If everything was successful, the command will just sit there and do nothing. At this point the tunnel is established. Now when you navigate to the tunnel URL in Browserling, your connection will go through to
hostname:port that you entered.
To close the tunnel simply click
Close tunnel in the tunnel menu and hit
Ctrl+C in the Command Prompt to exit
Local testing on WindowsNot on Linux or Mac? Check out the Local testing on Windows guide!
For technical support please contact us at email@example.com or use the support forum.