开发者

How do i use the internet privileges/access of a remote server using SSH

开发者 https://www.devze.com 2023-03-10 08:42 出处:网络
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 o

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消