Permissions error when connecting to EC2 via SSH on Mac OSx -
I am new to EC2. I have created my security credentials from this site:
This works very well, I rebooted and now when I try to connect then I get a login / password prompt (which I have never installed). After several attempts, this error Receives:
Permission denied (publishing, GSAPI-cum-Mike)
What am I doing wrong?
Two possibilities that I can think of, though both of them mentioned in the link you mentioned
-
You are not specifying the correct SSH keypair file or user name in the SSH command you are using to log on to the server:
Ssh -i [full path keypair file] root @ [ec2 example hostname or ip address]
-
You have the right app on the keypair file Is not the opinion; Using chmod 600 [keypair file]
to make sure that only you can read or write the file. [Update]: OK, so this is what you <
debug1: authentication that can continue: publickey, gssapi -with-mic debug1: Next authentication method: publickey debug1: Trying private key: ec2-keypair debug1: completed the PEM private key: type RSA debug1: authentication succeeded (publisher).
Are you running the SCH command from the directory that contains the ec2-keypair file? If so, try to specify path-i ./ec2-keypair to fix path problems. Check "Full path to LS-L [ec2-keypair]" and make sure the permissions are displayed as 600 (rw -------) if any works, then give me keypair The content of the file was suspected, so try it again using the steps in your link.
Comments
Post a Comment