Enhancement: Ability to change SSH link on Device page

Ok, i got it to work…

Had to edit these three files:

html/includes/hostbox-menu.inc.php
html/pages/device.inc.php
html/includes/table/devices.inc.php

Each with (added username :smile: ):

<a href="https://10.x.x.x/gateone/?ssh=ssh://'.$_SESSION['username'].'@'.$device['hostname'].'"><i class="fa fa-lock fa-lg icon-theme"  title="SSH to ' . $device['hostname'] . '"></a>
<li><a href="https://10.x.x.x/gateone/?ssh=ssh://'.$_SESSION['username'].'@'.$device['hostname'].'" target="_blank" rel="noopener"><i class="fa fa-lock fa-lg icon-theme"  aria-hidden="true"></i> SSH</a></li>
<div class="col-xs-1"><a href="https://10.x.x.x/gateone/?ssh=ssh://'.$_SESSION['username'].'@' . $device['hostname'] . '"><i class="fa fa-lock fa-lg icon-theme" title="SSH to ' . $device['hostname'] . '"></i></a></div>

I was able to understand what the devices* files do but not html/includes/hostbox-menu.inc.php. Not sure where that is implemented. But i changed it anyway :smiley:

Of course this is a hacky way to do it but like @tslytsly had said, would be a cool addition.

I know there is a guacamole ticket out there too :wink:

thanks
dave

EDIT* There is also a ticket for gateone!!