Reputation: 2250
Could you help me be able to connect to the heroku so that I can be able to login credentials into my Heroku account?
I want to be able to also commit and git download my files using the University proxy:
proxy.uonbi.ac.ke
That proxy has a password of the form xxx@students
.
How can this be done?
Upvotes: 1
Views: 808
Reputation: 1324887
If you need to contact an heroku remote repo, this article "Heroku Behind a Proxy", from Kit Monisit mentions that:
http_proxy
statements in your bash_profile
isn't enoughA tool that forces any TCP connection made by any given application to follow through proxy like TOR or any other SOCKS4, SOCKS5 or HTTP(S) proxy.
When you want two (or more) different proxies in chain:
like:
your_host <--> proxy 1 (TOR) <--> proxy 2 (HTTP or SOCKS4/5) <--> target_host
You may need it when the only way out from your LAN is through proxy server.
Or to get out from behind restrictive firewall that filters some ports in outgoing traffic.
And you want to do that with some app like telnet.
In your case:
Part of the problem is that the Heroku client uses HTTPS to log in remotely.
To work around this, you can use ProxyChains to tunnel HTTPS connections through your restrictive proxy server.
Its role is to provide proxy authentication services for software that otherwise cannot work with proxies.
The article explains the build and installation.
The setup is something along the lines of:
Copy the
proxychains.conf
file to your home directory.
$ cd ~
$ mkdir .proxychains
$ cd ~/dev/build/proxychains
$ cp etc/proxychains.conf ~/.proxychains
Configure the proxy server address.
$ cd ~/.proxychains
$ vim proxychains.conf
Comment out the following line so that it looks like
#proxy_dns
Towards the end of the file, below the header
[ProxyList]
, add your proxy server in the following format:
type host port [user pass]
For example
http 12.34.56.78 8080 user_me pa55w0rd
In your
.bash_profile
or.bashrc
, delete or comment out any export statements that set the proxy server for the terminal session. For example
# export http_proxy="http://user:[email protected]:8080"
Note: if you have a special character in your password (like an "at sign"), you need to have those characters percent-encoded:
] [ ? / < ~ # ` ! @ $ % ^ & * ( ) + = } | : " ; ' , > { space
Your "@
" in a password would be %40
: xxx%40students
.
Test your setup with Heroku
$ cd
$ proxychains heroku login
Upvotes: 1