Multiple Ports for Use with Dell iDRAC, Fujitsu iRMC or HPE iLO Remote Console

To successfully access a remote system console, you may need to connect to multiple ports.

ButConnect is able to connect to multiple ports in a single session.
Multiple ports can be specified as lists, ranges and lists of ranges.
The mapping of the ports is based on the sequence of specifications for ‘remoteport’ and ‘localport’, so their order is important.

For example:

[ILO]
mode = getaccess
server = <ssh_server>
port = <ssh_port>
user = <ssh_user>
ident = <ssh_key>
rhost = 192.168.1.234
lhost = 127.168.1.234
rport = 22-23, 80, 3002, 3389, 9300, 17988, 17990, 443
lport = 22-23, 80, 3002, 3389, 9300, 17988, 17990, 443
start = <browser>
param = "https://$LHOST:$LPORT"

(Only the last port entries can be referred to with ‘$RPORT’ or ‘$LPORT’.)

Connections to multiple hosts (and ports) are possible, too.

In that case, a one-by-one sequence of all involved remote and local hosts and ports is needed and its order also has to match.

For instance:

[WHATEVER]
mode = getaccess
server = <ssh_server>
port = <ssh_port>
user = <ssh_user>
ident = <ssh_key>
rhost = 172.16.0.80, 172.16.4.43
rport = 80, 443
lhost = 127.16.0.80, 127.16.4.43
lport = 8080, 8443
start = <browser>

(If the port is the same for all hosts or if the host is the same for all ports, it is sufficient to specify it only once.)

It is also possible to map hosts to ports and vice versa.

Like this:

[THIS]
mode = getaccess
server = <ssh_server>
port = <ssh_port>
user = <ssh_user>
ident = <ssh_key>
rhost = 10.22.0.1, 10.22.0.2
rport = 22
lhost = 127.22.0.1
lport = 2201, 2202
start = <ssh_client>

... or that:

[THAT]
mode = getaccess
server = <ssh_server>
port = <ssh_port>
user = <ssh_user>
ident = <ssh_key>
rhost = 10.59.0.1
rport = 5901, 5902
lhost = 127.59.0.1, 127.59.0.2
lport = 5900
start = <vnc_viewer>

Here are some common port numbers for these purposes: