PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 19, 2022

[FIXED] aws permission denied (publickey) with git-codecommit

 January 19, 2022     amazon-elastic-beanstalk, amazon-web-services, laravel, laravel-5     No comments   

Issue

I need to connect to SSH to connect to amazon code-commit so my steps:

  1. create new ssh called: asw-code-commit with asw-code-commit.pub

  2. upload the ssh to asw user IAM and got my SSH key ID

  3. update config in .ssh folder to this:

    Host git-codecommit.*.amazonaws.com
    User APKAV66BIP########
    IdentityFile ~/.ssh/aws-code-commit
    
  4. save and connect to ssh by this:

    ssh git-codecommit.us-east-2.amazonaws.com
    

I got this error:

no such identity: /Users/Ra/.ssh/aws-code-commit: No such file or directory
APKAV66BI#####@git-codecommit.us-east-2.amazonaws.com: Permission denied (publickey).

Where is the problem ?


Solution

On the screenshot the file is called (spelling mistake):

asw-code-commit

but it should be:

aws-code-commit


Answered By - Marcin
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing