How to terminate SSH tunnel background process
0
votes
1
answer
2205
views
I open an SSH tunnel (for port forwarding) from Windows 10 PC to a remote Linux server by typing the following command in Windows Command Prompt (substitute the actual DNS for host_IPv4_public_DNS):
C:> ssh -i thekey.pem -N -f -L 8888:localhost:8888 host_IPv4_public_DNS
After executing this command the tunnel opens, it is fully functional. The issue is that I don't get the windows command prompt (C:>) back. The process keeps running. How do I terminate this process/tunnel?
Asked by user458925
(1 rep)
Mar 3, 2021, 03:25 PM
Last activity: Jun 18, 2025, 05:43 AM
Last activity: Jun 18, 2025, 05:43 AM