putty-setup.md
January 5, 2021 ยท View on GitHub
Connect to Cloud VM from your Local Windows Machine using Port Forwarding Technique.
Requirements:
- Putty
Steps
-
Nagivate to C:\Windows\System32\drivers\etc
-
Open the
hostfile by right clicking and editing with either a text editor or notepad. -
Add these lines to the
hostfile:
127.0.0.1 localhost
127.0.0.1 klocalhost
-
Open Putty. Here you will need to create a session. Under
Host Name (or IP address)supply your [username]@[IP of VM] with Port 22. -
On the left-hand navigation bar, expand
SSHand click onAuth. Supply your SSH key you used to create the VM. -
Open up
TunnelsbelowSSHand add:Source Port: 80 Destination: klocalhost:80Source Port: 8080 Destination: localhost:80 -
Save your session as you may need/want to reuse it.
-
After saving the session, you can now
loadit andopenwhich will connect you to the VM.