Reputation: 73
I use ssh keys to access a server at lets say 200.200.200.200. It works fine. How can i access that server in my host as 127.0.0.1? I have tried my best but couldn't make it work.
Upvotes: 0
Views: 1097
Reputation: 806
You normally do this via port forwarding so you forward the remote port (the one from the server) that you are interested in to your local machine. Then you can access it via 127.0.0.1:
Example tutorial: https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding
In putty it is also straight forward: http://www.cs.uu.nl/technical/services/ssh/putty/puttyfw.html
You could also modify your local hosts file to point to this server but that often causes hick ups with local services.
Upvotes: 1