1 個回答
- 最新
- 最多得票
- 最多評論
0
Hi,
According to this article, https://aws.amazon.com/blogs/mt/use-port-forwarding-in-aws-systems-manager-session-manager-to-connect-to-remote-hosts/, you must define also your destination.
To recap, on your workstation you must install (AWS CLI and SSM plugin), and in your EC2 server (SSM Manager Agent) and to set correctly Security Groups etc.
Then create your connection between your workstation and the destination through the EC2.
aws ssm start-session --target <ssm-managed-instance-id> --document-name AWS-StartPortForwardingSessionToRemoteHost --parameters '{"localPortNumber":["2222"],"portNumber":["PORT Btivise SSH server"],"host":["IP Bitvise SSH server"]}'
And finally connect your ssh command via localport 2222
ssh -i path/id_rsa username@127.0.0.1 -p 2222
已回答 10 個月前
相關內容
- 已提問 7 個月前
- AWS 官方已更新 2 年前