| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
911 バイト追加 、 2023年10月24日 (火) 11:36
<pre>
# cat /dev/null > /var/spool/mail/root
</pre>
====ポートフォワーディング====
*ssh -i 踏み台サーバー鍵ファイル -NL ローカルポート:本当に接続したいサーバー:本当に接続したいサーバーのポート 踏み台サーバーユーザー@踏み台サーバー
<pre>
bengalure:~ piroto$ ssh -i ~/.ssh/typea-dev-key.pem -NL 13306:typea-dev-mysql-multiaz.c5ihdpszudfw.us-east-1.rds.amazonaws.com:3306 ec2-user@34.226.213.144
The authenticity of host '34.226.213.144 (34.226.213.144)' can't be established.
ED25519 key fingerprint is SHA256:thXy0hJy6EbCHNSpz5KWJaIkvYwtl0/n4hjYE70uAag.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '34.226.213.144' (ED25519) to the list of known hosts.
<pre>
*上記でフォワードされているので別ターミナルから
<pre>
bengalure:~ piroto$ mysql -u admin -p -P 13306
</pre>

案内メニュー