Forwarding iDrac Remote Console ports over SSH Tunnel



Published: 2018-07-10 10:45:29 +0000
Categories: BASH,

Language

BASH

Description

iDRACs (and other BMCs) should never be put directly onto the internet. This does mean, though, when trying to access a virtual console you need to go via some sort of a jumpbox. I'm not a fan of inconvenient approaches (like using Teamviewer to connect to a machine on the same network) and would rather, where possible, just set up an SSH tunnel with the appropriate ports forwarded. This command does just that, allowing use of the in browser remote console.

Snippet

IDRACIP='192.168.4.6'
ssh -L 443:$IDRACIP:443 -L 5900:$IDRACIP:5900 -L 5901:$IDRACIP:5901 user@jumpbox

Usage Example

# You can also change the HTTPS port to a non-privileged one so that you don't need to be root locally
#
# Just browse to https://localhost:9043
#
# You cannot trivially change the other port numbers though.
IDRACIP='192.168.4.6'
ssh -L 9043:$IDRACIP:443 -L 5900:$IDRACIP:5900 -L 5901:$IDRACIP:5901 user@jumpbox

Keywords

Dell, idrac, forwarding, tunnel, ssh, virtual console,

Latest Posts

Remotely backing up PFsense Configuration (BASH)
FFMPEG: Converting RMVB to X264 MP4 (BASH)
Recursively print table (print_r equivalent) (LUA)
Bulk Delete Comments from (Self-Hosted) JIRA Issues (Misc)
Add a static entry to the ARP table (BASH)
SSL Cipher Hex codes to Human Readable Names (Misc)
Convert Ascii to Binary (BASH)
Intercepting Outbound DNS Queries (BASH)
Handle Google Verification files within NGinx Configuration (NGinx)
Getting WhatsApp Rich Snippet Previews Working (Misc)

Copyright © 2018 Ben Tasker | Sitemap | Privacy Policy
Available at snippets.bentasker.co.uk and snippets.6zdgh5a5e6zpchdz.onion