To run Program
- ENABLE SSH AGENT FOR DOING SSH
- run command: cargo run --example test1
To do ssh manually:
- ENABLE SSH AGENT FOR DOING SSH
- run command: ssh ec2-user@
AWS ACCESS export AWS_SECRET_ACCESS_KEY=**** export AWS_ACCESS_KEY_ID=*****
SSH without a PEM file but using ssh-agent, follow these steps:
- Start ssh-agent. If it is not already running, start ssh-agent with the following command:
ssh-agent -s
- Add your PEM key to the ssh-agent. Use the following command to add your PEM key to the ssh-agent:
ssh-add <pem-key>
- SSH to your remote server. You can now SSH to your remote server without specifying your PEM key. For example, to SSH to the user
ubuntu
on the server with the IP address192.168.1.100
, you would use the following command:ssh [email protected]