PowerShell Guide: Connecting to AWS Instances and Transferring Files with SCP Command
Linux - explored in depth : Part 3
Connecting to AWS Instances
Before jumping to connect first check whether OpenSSH is pre-installed on your PowerShell or not. On your PowerShell type ssh
If something like this comes it means you are ready to go.
Now once you have set up your instance and it running let's jump into connect with PowerShell.
- Click on your
Instance ID
Click on
Connect
click on
SSH client
-
Copy this example, and direct yourself to the location where you stored your
.pem
file (This is an important step), right-click and open the terminal and paste this on your terminal and press Enter. You will get one-time permission, type
yes.
That's it -
Transferring Files with SCP Command
Open a new tab on PowerShell and direct yourself to the same location where your .pem
file is stored and paste the command which you copied, this one:
Paste this on the terminal, but now change the ssh to scp and type the location of your file in the below-given format:
Congratulations now you learnt how to use SCP!!
And,