how to use netbox to ssh device directly? #21044
Answered
by
alehaa
kaiwangsim
asked this question in
Help Wanted!
-
|
previously I saw netbox device has an icon, when click this icon it redirect to ssh to this device directly. |
Beta Was this translation helpful? Give feedback.
Answered by
alehaa
Dec 29, 2025
Replies: 1 comment
-
|
Using the "custom links" feature, you can add URLs to anything, including SSH, as long as the client operating system can interpret these links. I’ve included an SSH link in my NetBox instance using this definition. Link text: {% if
object.status == 'active'
and (object.oob_ip or object.primary_ip)
%}
<div class="d-inline mdi mdi-console-line"></div>
SSH Console
{% endif %}Link URL: {% set ip = object.oob_ip | default(object.primary_ip, true) %}
ssh://{{ ip.address.ip }} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kaiwangsim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the "custom links" feature, you can add URLs to anything, including SSH, as long as the client operating system can interpret these links. I’ve included an SSH link in my NetBox instance using this definition.
Link text:
Link URL: