summaryrefslogtreecommitdiffstats
path: root/run/run-ssh.sh
blob: 8e3dfdbe801b70528a1717cfd04a8818ef4c24e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/bash

set -o errexit

. config.sh

echo "Running ssh on the port $ssh_port"
echo "Create ssh tunnel and connect:"
echo "    ssh -L $ssh_port:localhost:$ssh_port $(hostname)"
echo " and connect locally "
echo "    ssh -p $ssh_port localhost"

podman run --name "ccpi-run" -it --rm --hooks-dir /usr/share/containers/oci/hooks.d/ -p ${ssh_port}:2222/tcp $volumes localhost/${image} /usr/sbin/sshd -D -p 2222