I am trying to login into my EC2 instance through my terminal(MAC) but once I run the command ssh -i 'pem file path' bitnami@ip-address I am getting this error -bash: ssh-i: command not found
Asked
Active
Viewed 2,574 times
-3
-
you need to have spaces between the command the option, this is what error saying.use something like
– samtoddler Jan 17 '21 at 18:12
2 Answers
1
It looks like you missed a space between ssh
and -i
.
ssh -i path/to/identity.file bitnami@ip-address

Jordan Ryan
- 326
- 2
- 6
-1
run this command brew install openssh in the terminal and try to login it will work

Sarfaraz Kasmani
- 37
- 3
- 7
-
but MacOS has this command builtin ??? why do you have to install it. – samtoddler Jan 17 '21 at 18:38
-
Macos comes with a perfectly fine copy of `ssh`. You can install another copy of ssh if you want. But it's unlikely that this was the source of your problem or the way to fix it. – Kenster Jan 18 '21 at 03:25