Sample Header Ad - 728x90

How to use socks proxy for commands in Terminal such as youtube-dl?

61 votes
7 answers
174178 views
I connect to a remote ssh server by running this command: ssh -D 12345 bob@myserver.com This creates a socks proxy that I can use with Firefox to bypass censorship in my country. However, I can't take advantage of it to in the command line. Let's say my country blocks access to youtube. How can I use the ssh connection to run a command such as: youtube-dl "youtube.com/watch?v=3XjwiV-6_CA" Without being blocked by the government? How I can set a socks proxy for all terminal commands?
Asked by user1098135 (613 rep)
Apr 6, 2013, 04:46 PM
Last activity: Jun 14, 2020, 12:12 PM