Hi there.
I need to open ssh terminal with root as default user using the device menu action. The already there item menu opens it as the current user so I decided to create a Custom device menu action like this:
$config[‘html’][‘device’][‘links’] = [ “title” => “SSH custom”, “url” => “ssh://root@{{ $device->hostname }}” ];
the problem with this is that the variable $device->hostname is not expanded and the final generated link looks like:
ssh://root{{ $device->hostname }}
if I separate the @ and the first occurrence of the { character with a space character the variable is correclty expanded and the final generated link looks like:
ssh://root@ xxx.x.xxx.xx
but it is incorrect
it seems that i need to escape the @ character in some way.
please advice