summaryrefslogtreecommitdiffstats
path: root/environments/vncserver-ssh-socket-forward/entrypoint.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 17:06:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 17:06:32 +0000
commit2dad5357405ad33cfa792f04b3ab62a5d188841e (patch)
treeb8f8893942060fe3cfb04ac374cda96fdfc8f453 /environments/vncserver-ssh-socket-forward/entrypoint.sh
parentInitial commit. (diff)
downloadremmina-2dad5357405ad33cfa792f04b3ab62a5d188841e.tar.xz
remmina-2dad5357405ad33cfa792f04b3ab62a5d188841e.zip
Adding upstream version 1.4.34+dfsg.upstream/1.4.34+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'environments/vncserver-ssh-socket-forward/entrypoint.sh')
-rwxr-xr-xenvironments/vncserver-ssh-socket-forward/entrypoint.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/environments/vncserver-ssh-socket-forward/entrypoint.sh b/environments/vncserver-ssh-socket-forward/entrypoint.sh
new file mode 100755
index 0000000..83ede79
--- /dev/null
+++ b/environments/vncserver-ssh-socket-forward/entrypoint.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+echo "remmina" >> ~/.vnc/passwd
+
+# Start the vnc server while only accepting connections through the unix-socket.
+# This will prompt the user for a password
+vncserver -rfbport=-1 -rfbunixpath /vnc-server-tmp/vnc.socket -xstartup /usr/bin/xterm
+
+cat ~/.ssh/authorized_keys
+
+echo "SSH Server up!"
+$(which sshd) -D