mirror of
https://github.com/m8tin/cis.git
synced 2025-12-06 07:48:26 +01:00
You can use 'host.example.net:2222' as parameter now
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
_REMOTE_HOST="${1:?"FQDN of server missing"}"
|
_REMOTE_HOST="${1:?"FQDN of server missing"}"
|
||||||
_REMOTE_PORT="${2:-"22"}"
|
_REMOTE_PORT="${_REMOTE_HOST}:"
|
||||||
|
_REMOTE_PORT="${_REMOTE_PORT#*:}"
|
||||||
|
_REMOTE_PORT="${_REMOTE_PORT%%:*}"
|
||||||
|
_REMOTE_PORT="${_REMOTE_PORT:-"22"}"
|
||||||
_REMOTE_USER="monitoring"
|
_REMOTE_USER="monitoring"
|
||||||
_SOCKET='~/.ssh/%r@%h:%p'
|
_SOCKET='~/.ssh/%r@%h:%p'
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
_REMOTE_HOST="${1:?"FQDN of server missing"}"
|
_REMOTE_HOST="${1:?"FQDN of server missing"}"
|
||||||
_REMOTE_PORT="${2:-"22"}"
|
_REMOTE_PORT="${_REMOTE_HOST}:"
|
||||||
|
_REMOTE_PORT="${_REMOTE_PORT#*:}"
|
||||||
|
_REMOTE_PORT="${_REMOTE_PORT%%:*}"
|
||||||
|
_REMOTE_PORT="${_REMOTE_PORT:-"22"}"
|
||||||
_REMOTE_USER="monitoring"
|
_REMOTE_USER="monitoring"
|
||||||
_SOCKET='~/.ssh/%r@%h:%p'
|
_SOCKET='~/.ssh/%r@%h:%p'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user