I realize I’m probably the only one having this problem, but I spent all weekend trying to troubleshoot and can’t figure it out. I’ve followed the steps from Jeremy’s article (https://www.fast.ai/2019/02/15/fastec2/) and keep getting:
Permission denied (publickey).
I have the .pem file on my machine - does it need to live somewhere specific (on Windows)? Any help would be appreciated!
Update - using ssh works to get into the newly created box (when I specified where the .pem file was as part of the arguments). Is there a flag/option I missed in fastec2 to set this?
Not sure if you’re still having this problem, but I ran into the same issue and figured it out:
fe2 connect base --keyfile ~/.ssh/mykey.pem
I’m also having a bit of trouble with these instructions, but on launching the on-demand instance itself.
Specifically, I’ve made a keypair on AWS called default, and I have it on my local computer as well.
Then, I try doing:
fe2 launch base ami-085925f297f89fce1 50 m5.xlarge
but I’m running into a key not found error. Is there anything else I need to do for this command to work? Thanks in advance!
Resolved, looks like I just had the key-pair in the wrong region.