
Estoy usando git.sh enesteenlace, y tengo el archivo clave:
sh-3.2# ls -al /Users/tiina/.ssh/id_rsa/
drw------- 4 tiina en 136 Jun 18 19:26 .
drwx------ 5 tiina en 170 Mar 15 2016 ..
-rw-------@ 1 tiina en 1482 Jun 18 19:19 pri_rsa.ppk
pero cuando ejecuto en mac
./git.sh -i ~/.ssh/id_rsa/pri_rsa.ppk clone ssh://[email protected]:2222/foo
Cloning into 'portal'...
Warning: Identity file /Users/tiina/.ssh/id_rsa/pri_rsa.ppk not accessible: Permission denied.
Load key "/Users/tiina/.ssh/id_rsa": Is a directory
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
EDITAR: Resulta que cometí dos errores aquí. Cuando use ssh en Mac, primero debe convertir la clave privada de ppk a pem:
puttygen xxx.ppk -O private-openssh -o xxx.pem
(instale PuTTY primero usando sudo brew install putty
)
Respuesta1
chmod u+x /Users/tiina/.ssh/id_rsa/