More than 3 years have passed since last update.
前提条件
1. 事前作業
EC2インスタンス
netstat -n|grep ':22 ' |awk '{print $5}' | sed 's/:.*$//'
結果(例):
xxx.xxx.xxx.xxx
2. ログイン元アドレスの変数設定 (ローカル)
変数の設定(ローカル)
FOREIGN_ADDR='<事前作業で表示されたIPアドレス)'
変数の設定(ローカル)
VPC_SG_CIDR="${FOREIGN_ADDR}/32" \
&& echo ${VPC_SG_CIDR}
3. 事後作業
完了
Why not register and get more from Qiita?
- We will deliver articles that match you
By following users and tags, you can catch up information on technical fields that you are interested in as a whole
- you can read useful information later efficiently
By "stocking" the articles you like, you can search right away
Sign upLogin