summaryrefslogtreecommitdiffstats
path: root/run/run-ssh.sh
blob: 86f994f3702a1200aada64b8e5a0e3a84d859930 (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 ${image} /usr/sbin/sshd -D -p 2222