From b363c63d44eef05a06f8f7ff7c471ac4392cc4e9 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 11 Nov 2020 05:29:12 +0100 Subject: Support for ufo & jupyter notebooks --- run/run-ssh.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'run/run-ssh.sh') diff --git a/run/run-ssh.sh b/run/run-ssh.sh index 950024a..c467334 100644 --- a/run/run-ssh.sh +++ b/run/run-ssh.sh @@ -2,12 +2,12 @@ set -o errexit -port="$(($(id -u) - 900))22" +. config.sh -echo "Running on the port $port" +echo "Running ssh on the port $ssh_port" echo "Create ssh tunnel and connect:" -echo " ssh -L $port:localhost:$port $(hostname)" +echo " ssh -L $ssh_port:localhost:$ssh_port $(hostname)" echo " and connect locally " -echo " ssh -p $port localhost" +echo " ssh -p $ssh_port localhost" -podman run --name "ccpi-run" -it --rm --hooks-dir /usr/share/containers/oci/hooks.d/ -p ${port}:2222/tcp -v ~/ccpi/data:/ccpi/data localhost/ccpi /usr/sbin/sshd -D -p 2222 +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 -- cgit v1.2.3