-3

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

2 Answers2

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

  • 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