1

I have an EC2 instance on which I don't allow ssh.

I use EC2 Instance Connect to connect to it.

What is the alternative to scp Amazon exposes when using EC2 Instance Connect rather than ssh?

Alon
  • 10,381
  • 23
  • 88
  • 152
  • You can scp through [session manager](https://aws.amazon.com/about-aws/whats-new/2019/07/session-manager-launches-tunneling-support-for-ssh-and-scp/). – Marcin Apr 09 '21 at 04:42
  • Can't you install the Openssh client (scp is a client) on your Ec2 instance? – Red Cricket Apr 09 '21 at 04:55

1 Answers1

1

EC2 Instance Connect uses a web connection to Guacomole running on an AWS service, which then establishes an SSH connection on your behalf. There is no scp component available.

As an alternative, if you can establish a connection using AWS Systems Manager Session Manager, then it can also provide Port Forwarding that can be used for additional connections (such as scp).

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470