Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于多个帐户的aws codecommite ssh密钥+;权限被拒绝(公钥)_Ssh_Aws Codecommit - Fatal编程技术网

用于多个帐户的aws codecommite ssh密钥+;权限被拒绝(公钥)

用于多个帐户的aws codecommite ssh密钥+;权限被拒绝(公钥),ssh,aws-codecommit,Ssh,Aws Codecommit,我需要在mac上使用多个帐户配置aws codecommit。 对于单个帐户,只需从aws上载ssh公钥并使用ssh密钥编辑.ssh/config文件即可: 主机git codecommit..amazonaws.com 用户APKA****5J IdentityFile~/.ssh/acc1 rsa 但当尝试通过生成多公钥配置多帐户时,会出现错误: 我的配置文件: 主机acc1 主机名git-codecommit.ap-southest-2.amazonaws.com 用户APKA****GV

我需要在mac上使用多个帐户配置aws codecommit。 对于单个帐户,只需从aws上载ssh公钥并使用ssh密钥编辑.ssh/config文件即可: 主机git codecommit..amazonaws.com 用户APKA****5J IdentityFile~/.ssh/acc1 rsa

但当尝试通过生成多公钥配置多帐户时,会出现错误: 我的配置文件:

主机acc1
主机名git-codecommit.ap-southest-2.amazonaws.com 用户APKA****GV IdentityFile~/.ssh/acc1 rsa

帐户2的凭据 主机acc2 主机名git-codecommit.ap-northeast-2.amazonaws.com 用户APKA4Q****RXS3 IdentityFile~/.ssh/acc2 rsa

错误:

user@git-codecommit.ap-southerast-2.amazonaws.com:权限被拒绝(公钥)