ssh agent code example
Example 1: eval ssh-agent
eval `ssh-agent`
Example 2: ssh agent
# For AWS
eval `ssh-agent` # start your ssh agent
ssh-add YOUR_SSH_KEY.pem # your pem file
ssh-add -l # see your added keys
ssh -A USER_NAME@IP_ADRESS # ec2-user, ubuntu, root, etc.