Learn how to set up a local SSH tunnel in this video.
- [Scott Simpson] Local port forwarding allow us to assign a…local port, and have that tunneled to a remote service.…This can be useful when you want to retain…a common connection, but have the ability…to change where it connects to.…Let's see how we do this.…I'll use SSH to create a local connection…to tunnel into our metasploitable server.…I'll set up local port 8080 to do this.…
If I look up port 8080 on Kali…I can see there's no service running.…I'll now use SSH to connect to my…metasploitable server on port 80.…But I'll access it by using ports 8080…on my local Kali host.…I'll use the -NNT switch to tell SSH not to set up…a terminal, and -F to background the SSH process.…
- L indicates that this is a local port forwarding request.…SSH has created the tunnel, and we've now got a local access…connection from Kali to the metasploitable web server.…Let's try it out.…And I can see the metasploitable webpage.…
Let's now use LSOF to get the background process ID…and kill it.…We can see SSH is running on herd 2324.…
- How tunneling works
- Running a local SSH tunnel
- Dynamic SSH tunneling
- Pivoting with Armitage and Metaspoit
- Exfiltrating using DET and DNS
- Covert exfiltration with Cachetalk
- Using PyExfil to exfiltrate over HTTPS
Skill Level Advanced
Ethical Hacking: Penetration Testingwith Lisa Bock1h 20m Intermediate
Penetration Testing Essential Trainingwith Malcolm Shore2h 29m Intermediate
Penetration Testing: Advanced Kali Linuxwith Malcolm Shore2h 22m Intermediate
1. Preparing the Lab
Next steps1m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.