From 829aa73bce8c3e759c8a6bf19f79c8a4b56595e7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 24 May 2024 17:46:57 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20ssh=20=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 开发机隧道方案.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/开发机隧道方案.md b/开发机隧道方案.md index 26ad2b0..edb93d2 100644 --- a/开发机隧道方案.md +++ b/开发机隧道方案.md @@ -49,6 +49,20 @@ ```t # file .ssh/config + ## 推荐样式 + # windows + Host my-dev + ProxyCommand aws ssm start-session --target {替换为对应的instance_id} --document-name AWS-StartSSHSession --parameters portNumber=%p + IdentityFile ~/.ssh/test.pem + User ubuntu + + # Linux or Mac + Host my-dev + ProxyCommand aws ssm start-session --target {替换为对应的instance_id} --document-name AWS-StartSSHSession --parameters 'portNumber=%p' + IdentityFile ~/.ssh/test.pem + User ubuntu + + ## 通用形势 # windows host i-* mi-* ProxyCommand aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters portNumber=%p