diff options
author | Suren A. Chilingaryan <csa@ipecompute2.ands.kit.edu> | 2020-11-11 05:29:12 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@ipecompute2.ands.kit.edu> | 2020-11-11 05:29:12 +0100 |
commit | b363c63d44eef05a06f8f7ff7c471ac4392cc4e9 (patch) | |
tree | bc95b45f56aed16e3ed005e01a762dad29fad205 /run/run-ssh.sh | |
parent | 28190b6d4664508ad8b1cf88a82378b02f487cfa (diff) | |
download | ccpi-b363c63d44eef05a06f8f7ff7c471ac4392cc4e9.tar.gz ccpi-b363c63d44eef05a06f8f7ff7c471ac4392cc4e9.tar.bz2 ccpi-b363c63d44eef05a06f8f7ff7c471ac4392cc4e9.tar.xz ccpi-b363c63d44eef05a06f8f7ff7c471ac4392cc4e9.zip |
Support for ufo & jupyter notebooks
Diffstat (limited to 'run/run-ssh.sh')
-rw-r--r-- | run/run-ssh.sh | 10 |
1 files changed, 5 insertions, 5 deletions
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 |