summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-11-20 17:28:27 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-11-20 17:28:28 +0100
commit95649a2b7c8fa7d5bd473713d391141c2ed012c2 (patch)
treee06154b5819cbde499ce2ad02331dd6256e45286
parent20d908e1ef8216c33357aa74259f700b546877c5 (diff)
downloaddotfiles-95649a2b7c8fa7d5bd473713d391141c2ed012c2.tar.gz
dotfiles-95649a2b7c8fa7d5bd473713d391141c2ed012c2.tar.bz2
dotfiles-95649a2b7c8fa7d5bd473713d391141c2ed012c2.zip
Move remhelp to scripts
-rwxr-xr-xbin/remhelp41
1 files changed, 0 insertions, 41 deletions
diff --git a/bin/remhelp b/bin/remhelp
deleted file mode 100755
index 76c17be..0000000
--- a/bin/remhelp
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/zsh
-
-# This script is intended to help other users.
-# It launches an SSH-Tunnel to necoro.eu and makes it forward connections to port 5500
-# (yes! this does not need any firewall hackering)
-#
-# Ideally used with an VNC-Exe generated by http://www.heise.de/netze/tools/fernwartung
-#
-# Needs locally: net-misc/ssvnc
-# (I couldn't get it to work with any other vncviewer)
-
-autoload -U colors
-colors
-
-log () {
- echo ${fg_bold[white]}">> $1"${reset_color}
- }
-
-cont=
-
-TRAPINT () {
- log "Interrupting..."
- cont=x
-}
-
-log "Adding SSH-Key"
-ssh-add
-
-if [[ -z $cont ]]; then
- log "Setting up port forwarding"
- coproc ssh -tt -R :5500:localhost:5500 necoro@necoro.eu
-
- log "Starting listening process"
- /usr/lib64/ssvnc/vncviewer -noraiseonbeep -encodings "copyrect tight zrle zlib hextile" -listen 0
-
- log "Sending 'exit' to SSH-Connection"
- print -p exit
-
- log "Removing SSH-Key"
- ssh-add -d
-fi