phpVirtualBox: Can't connect to console (over SSH tunnel)

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....

phpVirtualBox: Can't connect to console (over SSH tunnel)

Postby ^rooker » Mon Mar 04, 2019 5:46 pm

[PROBLEM]
Unable to access the VM client console (Flash in browser) when tunneling the phpVirtualBox webinterface over SSH.
When I click the "connect" button, I get this error after a few seconds:
Disconnect reason: E: TCP: SECURITY_ERROR Error #2048



[SOLUTION]
Seems the reason for this error is, that the virtualbox console binds to localhost only.
According to phpVirtualBox's Issue #43 on Github), adding the following to its config.php should do the trick:
Code: Select all
$vrdeaddress = '0.0.0.0';

This causes the console interface to bind to all network interfaces - not just 127.0.0.1.

Unfortunately, I must update phpVirtualBox to a more recent version before I can try this.


Links:
  • 0

Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
 
Posts: 1449
Joined: Fri Aug 29, 2003 8:39 pm
Reputation: 0

Return to Knowledge Base

Who is online

Users browsing this forum: Google [Bot] and 3 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: Google [Bot] and 28 guests

Reputation System ©'