Initial commit
This commit is contained in:
19
servicemenus/backtunnel_access.desktop
Normal file
19
servicemenus/backtunnel_access.desktop
Normal file
@@ -0,0 +1,19 @@
|
||||
[Desktop Entry]
|
||||
Type=Service
|
||||
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
|
||||
MimeType=inode/directory;
|
||||
Icon=folder-remote
|
||||
Actions=BackTunnelAccess;
|
||||
X-KDE-StartupNotify=false
|
||||
X-KDE-Priority=TopLevel
|
||||
|
||||
[Desktop Action BackTunnelAccess]
|
||||
Name=Access via BackTunnel…
|
||||
Icon=folder-remote
|
||||
Exec=bash -lc '
|
||||
FOLDER="%f";
|
||||
REMOTE="$(kdialog --inputbox "Remote (user@host or user:host):" "user@vps.example.com")" || exit 1;
|
||||
PORT="$(kdialog --inputbox "Tunnel port on remote:" "2222")" || exit 1;
|
||||
MP="$(kdialog --getexistingdirectory --title "Choose mount point" "/mnt/remote-rssh")" || exit 1;
|
||||
konsole --noclose -e backtunnel-access "$FOLDER" from "$REMOTE" -p "$PORT" -m "$MP"
|
||||
'
|
||||
20
servicemenus/backtunnel_share.desktop
Normal file
20
servicemenus/backtunnel_share.desktop
Normal file
@@ -0,0 +1,20 @@
|
||||
[Desktop Entry]
|
||||
Type=Service
|
||||
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
|
||||
MimeType=inode/directory;
|
||||
Icon=network-server
|
||||
Actions=BackTunnelShare;
|
||||
X-KDE-StartupNotify=false
|
||||
X-KDE-Priority=TopLevel
|
||||
|
||||
[Desktop Action BackTunnelShare]
|
||||
Name=Share via BackTunnel…
|
||||
Icon=network-server
|
||||
Exec=bash -lc '
|
||||
FOLDER="%f";
|
||||
REMOTE="$(kdialog --inputbox "Remote (user@host or user:host):" "user@vps.example.com")" || exit 1;
|
||||
DUR="$(kdialog --combobox "Share duration" 30m 2h 6h 1d 2d --editable "2h")" || exit 1;
|
||||
TPORT="$(kdialog --inputbox "Tunnel port on remote:" "2222")" || exit 1;
|
||||
LPORT="$(kdialog --inputbox "Local SSH port to expose:" "22")" || exit 1;
|
||||
konsole --noclose -e backtunnel-share "$FOLDER" with "$REMOTE" for "$DUR" -p "$TPORT" -l "$LPORT"
|
||||
'
|
||||
Reference in New Issue
Block a user