I have problems when trying to transfer data from my local machine to cloud server (Amazon lightsail). My idea was to transfer data from local machine with scp command using private key. However I got error message:
ssh: connect to host my_public_IP port 22: Connection timed out lost connection
Then I tried just ssh command:
ssh -i /lightsail_key.pem Administrator@my_public_IP
and got same error.
Is "Administrator" correct username that I should use? My Amazon Lightsail instance is Windows Server 2016
I'm able to ping that public IP address but the SSH connection is not working.
SSH TCP port 22 is enabled in Amazon Lightsail Networking settings IPv4 Firewall rules.