# Buka SSH shell ke reverse proxy # Usage: .\scripts\ssh-remote.ps1 # .\scripts\ssh-remote.ps1 -Command "docker ps" param( [string]$Command = "" ) $HostAddr = "10.100.1.24" $SshPort = 22 $SshMac = "hmac-sha1" $SshUser = "root" if ($Command) { ssh -o BatchMode=yes -m $SshMac "${SshUser}@${HostAddr}" -p $SshPort $Command } else { ssh -m $SshMac "${SshUser}@${HostAddr}" -p $SshPort }