> For the complete documentation index, see [llms.txt](https://wiki.smhuda.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.smhuda.com/pentesting/errors-and-solutions/kill-ssh-port-forwarding.md).

# Kill SSH Port Forwarding

If you are using Linux you can kill the process by:

```
ps aux | grep ssh
```

and then use

```
kill <id>
```

To kill the process. If the kill command is not successful you can try

```
kill -9 <id>
```
