diff options
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 |