LoginSignup
35
35

More than 5 years have passed since last update.

Windowsコマンドプロンプトで認証プロキシを突破する

Last updated at Posted at 2018-08-02

はじめに

会社内からだと認証プロキシがあるので、コマンドプロンプトからAWS CLIを使ったり、pipしたりするときに毎回ググって設定方法を探しているのでメモ

必要な情報

以下の4つ

  • ユーザー名
    • 例:username
  • パスワード
    • 例:password
  • プロキシサーバのホスト名(またはIPアドレス)
    • 例:proxy.contoso.com
  • 使用するポート番号
    • 例:8080

設定コマンド

set HTTP_PROXY=http://username:password@proxy.contoso.com:8080
set HTTPS_PROXY=http://username:password@proxy.contoso.com:8080

設定値確認

echo %HTTP_PROXY%
echo %HTTPS_PROXY%

疎通確認

以下などを使って応答が返ってくること

curl http://googole.com
aws ec2 describe-instances
pip search py*
35
35
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
35
35