I have access to a jump off server via ssh (i don't have root privileges), from the jump off server i can access the services that i need to use using curl, so i know that access from the server is ok.
I want to access these services locally, im using xcode for an iOS app and through the simulator i need these services to work with my app. Is there a way of using the remote session's internet access from my local machine over ssh so i ca开发者_JAVA百科n make this work?
is this possible using ssh as a sort of proxy?
You can tunnel non-privileged ports via SSH even if you dont have root access.
# ssh user@host -L<local_port>:<remote_ip/host>:<remote_port>
For example, if you wanted to connect to google.com on port 80 via your proxy.
# ssh user@host -L8080:google.com:80
Then navigate in your browser to "http://localhost:8080/" which gets tunneled to "google.com:80". You can specify the -L switch multiple times for more port forwards.
精彩评论