
ショコラ
パワーシェルで SSHポートフォワードするには?
「powershell -NoProfile -ExecutionPolicy Unrestricted -Command “& { ssh -i {秘密鍵} {ユーザー}@{ホスト} -g -NL {ローカルポート}:localhost:{接続先のポート}}”」でキメマス。

もっさん先輩
powershell -NoProfile -ExecutionPolicy Unrestricted^
-Command "& { ssh -i {秘密鍵} {ユーザー}@{ホスト} -g -NL {ローカルポート}:localhost:{接続先のポート}}"
「powershell -NoProfile -ExecutionPolicy Unrestricted -Command “& { コマンド }”」で1行にしています。sshコマンドは linux と一緒なんですね。