blob: c467334523cb28614f12d647d8afbdf274674427 (
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 -v ~/ccpi/data:/ccpi/data localhost/${image} /usr/sbin/sshd -D -p 2222
|