From aa3bc74f1d506a305d7e9f6da8a977b8baf79fbe Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 22 Sep 2025 01:52:54 +0200 Subject: [PATCH] linux/ssh: added guide to kill port tunnel --- wiki/linux/ssh.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/wiki/linux/ssh.md b/wiki/linux/ssh.md index 2208f6e..0b08e61 100644 --- a/wiki/linux/ssh.md +++ b/wiki/linux/ssh.md @@ -137,5 +137,20 @@ it is running at. ssh -f -N -L ::
``` +After running the command the tunnel will stay established until the process is killed. +This can be done by running a command identical or similar to the following which is used to find +the process. + +```sh +ps aux | grep "ssh -f -N -L " +``` + +Afterwards it can be killed by running the follwing command where `` is the id of the +process found with the previous command. + +```sh +kill +``` + Files that are based on a remote server can be mounted as described in [the corresponding section](#mount-directory-with-sshfs) to setup complete remote development.