Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
18
rated 0 times [  18] [ 0]  / answers: 1 / hits: 166835  / 2 Years ago, tue, july 5, 2022, 2:10:53

I can set my proxy username and password along with proxy settings in the proxy ui but these settings do not work on the command line. How can I use apps such as wget & ping on the command line with a proxy?



Example Details:




  • username: 1234

  • pass: linux

  • proxy: proxy

  • port: 8080


More From » internet

 Answers
3

The general scheme for the proxy URL is user:password@host:port



You can set the environment variable http_proxy, https_proxy, ftp_proxy, socks_proxy or all_proxy



In a bash shell, type this:



export http_proxy="http://user:password@host:port"


To persist this configuration, you can add it to /etc/environment or /etc/bash.bashrc, /etc/profile or to an individual user /home/user/.bashrc


[#44771] Tuesday, July 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kilusy

Total Points: 171
Total Questions: 110
Total Answers: 128

Location: Cayman Islands
Member since Sat, Dec 5, 2020
3 Years ago
;