I made an alias to make it easier to connect to my AWS EC2 instance. Although there is an error. Here is the code in
alias aws_connect=‘ssh -i /path/to/keyfile.pem firstname.lastname@example.org’
When I type "aws_connect in the terminal, this is what comes out:
-bash: “ssh: command not found. This is the output when I type
MacBook-Pro:~ username$ source ~/.bash_profile -bash: alias: -i: not found -bash: alias: /path/to/keyfile.pem: not found -bash: alias: email@example.com”: not found
Can anyone see what I did wrong?