#!/bin/bash

REPO=$1

# if [ "$REPO" = "techss.app" ]; then
# 	ssh -p 5022 -L 5000:registry:5000 root@ssh.techss.app
# 	exit 0
# fi

if [ "$REPO" = "test" ]; then
	ssh -L 5000:registry.intra.techss.co.za:5000 localhost
elif [ "$REPO" = "kue" ]; then
	ssh -L 5000:kube.intra.gpsts.co:5000 localhost
elif [ "$REPO" = "azure.gpsts.cloud" ]; then
	slite link "$REPO" 10.240.0.4 5000
elif [ "$REPO" = "" ]; then
	ps aux | grep ssh | grep "\-L"
else
	slite link "$REPO" registry 5000
fi
