AWS Tutorial - How to Copy Files From Your Local Computer to EC2 Instance Using The SCP Command
How to host a WordPress website on AWS: https://www.udemy.com/course/how-to-build-a-wordpress-website-on-aws/?referralCode=AFEA59BEE571B7B2E957
AWS Tutorial - How to Copy Files From Your Local Computer to EC2 Instance Using The SCP Command
After you launch your instance, you can connect to it and use it the same way that you'd use a computer sitting in front of you. The following aws tutorial explain how to copy files between local computer and ec2 instance (AWS). You can copy your files using the 'SCP command' from your local machine, and transferring files to your AWS instance can be possible from your command prompt. To copy files between local computer and ec2 instance, follow these steps:
In AWS management console:
Creat security group
Creat keypair (.pem)
Launch EC2 instance. Attach keypair and security group
convert keypair .pem to .ppk
SSH into your ec2 instance and run the following commands
sudo su
yum update -y
yum install httpd -y
cd /var/www/html
chown ec2-user .
On your computer:
Copy the keypair (.pem format) to the folder where the files(that you want to transfer) are present.
Open the command prompt
Change directory to the location of your folder
Run the following command for copying the file to copy only the contents of local_dir and not the directory local_dir itself:
scp -i ./key-pair.pem ./path/to/files/ username@public-ip:/pathwhere/you/need/to/copy
For example:
scp -i ./Ec2KeyPair.pem -r ./Velocity/* ec2-user@107.21.140.196:/var/www/html
To copy a single file from local directory:
scp -i ./Ec2KeyPair.pem ./scp.txt ec2-user@107.21.140.196:/var/www/html
Copy directory local_dir with all its sub-directories:
scp -i ./Ec2KeyPair.pem -r ./Velocity ec2-user@107.21.140.196:/var/www/html
Copy only the contents of local_dir and not the directory local_dir itself:
scp -i ./Ec2KeyPair.pem -r ./Velocity/* ec2-user@107.21.140.196:/var/www/html
AWS Tutorial - How to Copy Files From Your Local Computer to EC2 Instance Using The SCP Command
#AWS #VPC #AWSTutorialForBeginners
Видео AWS Tutorial - How to Copy Files From Your Local Computer to EC2 Instance Using The SCP Command канала AOS Notes
AWS Tutorial - How to Copy Files From Your Local Computer to EC2 Instance Using The SCP Command
After you launch your instance, you can connect to it and use it the same way that you'd use a computer sitting in front of you. The following aws tutorial explain how to copy files between local computer and ec2 instance (AWS). You can copy your files using the 'SCP command' from your local machine, and transferring files to your AWS instance can be possible from your command prompt. To copy files between local computer and ec2 instance, follow these steps:
In AWS management console:
Creat security group
Creat keypair (.pem)
Launch EC2 instance. Attach keypair and security group
convert keypair .pem to .ppk
SSH into your ec2 instance and run the following commands
sudo su
yum update -y
yum install httpd -y
cd /var/www/html
chown ec2-user .
On your computer:
Copy the keypair (.pem format) to the folder where the files(that you want to transfer) are present.
Open the command prompt
Change directory to the location of your folder
Run the following command for copying the file to copy only the contents of local_dir and not the directory local_dir itself:
scp -i ./key-pair.pem ./path/to/files/ username@public-ip:/pathwhere/you/need/to/copy
For example:
scp -i ./Ec2KeyPair.pem -r ./Velocity/* ec2-user@107.21.140.196:/var/www/html
To copy a single file from local directory:
scp -i ./Ec2KeyPair.pem ./scp.txt ec2-user@107.21.140.196:/var/www/html
Copy directory local_dir with all its sub-directories:
scp -i ./Ec2KeyPair.pem -r ./Velocity ec2-user@107.21.140.196:/var/www/html
Copy only the contents of local_dir and not the directory local_dir itself:
scp -i ./Ec2KeyPair.pem -r ./Velocity/* ec2-user@107.21.140.196:/var/www/html
AWS Tutorial - How to Copy Files From Your Local Computer to EC2 Instance Using The SCP Command
#AWS #VPC #AWSTutorialForBeginners
Видео AWS Tutorial - How to Copy Files From Your Local Computer to EC2 Instance Using The SCP Command канала AOS Notes
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
How To Use The scp Command to Copy a File From Remote to Local (and vice versa)How to connect to AWS EC2 instance from local machine | Connect to EC2 instance from local machineAWS Tutorial: How to Host a Website on AWS EC2 InstanceHow to copy files to aws ec2 instance from local machineSCP | Linux | Copy files from local to remote machine (EC2) OR remote machine to local using scp .AWS Tutorial: How to Copy Files From Your S3 Bucket to EC2 InstanceHow to (Connect) SSH Into Your AWS EC2 Instance Using PuTTYAmazon AWS: How to change AWS EC2 Key pair by doing SSH | Keypair Rotation | Add new sshkey to EC2VMSSH to EC2 Instances using Linux or Mac TutorialHow to Configure Visual Studio Code to Remotely SSH to an AWS Instancescp command - SCP to Securely Transfer Files/Folders in LinuxGetting started with Amazon WorkspacesHow to copy file | directory to EC2 using SCPHow to host a dynamic website on AWS EC2 instance || How to deploy a php website on AWS EC2 instanceUsing SCP to transfer files/folder from Local to Remote & from Remote to Local in Linux/Windows/MacHow to Use Putty pscp to Copy Files to/from a Remote ServerHow to connect to EC2 w/ PuTTY (Windows)How to create a billing alarm alert in AWS | AWS billing alert best practiceConnect to AWS EC2 instance via ssh from windowsLearn to Deploy your Docker Container on EC2 in 15 Minutes