{"id":84,"date":"2015-09-30T10:00:00","date_gmt":"2015-09-30T10:00:00","guid":{"rendered":"http:\/\/aldarias.es\/wordpress\/?p=84"},"modified":"2015-09-30T10:00:00","modified_gmt":"2015-09-30T10:00:00","slug":"decargar-repositorios-privados-bitbucket-con-script-en-bash","status":"publish","type":"post","link":"http:\/\/aldarias.es\/wordpress\/decargar-repositorios-privados-bitbucket-con-script-en-bash\/","title":{"rendered":"Decargar repositorios privados bitbucket con script en bash"},"content":{"rendered":"<p>Seguidamente se explica con descargar repositorios de bitbucket privados, es decir, con usuario y contrase\u00f1a, a trav\u00e9s de las firmas p\u00fablicas.<\/p>\n<p>1. Crear fichero de clave publica: &nbsp;~\/.ssh\/id_rsa<br \/><span style=\"font-family: monospace;\">ssh-keygen<\/span><br \/><span style=\"color: red; font-family: monospace;\"><br \/><\/span><span style=\"font-family: monospace;\">2. Cargar la clave:<\/span><br \/>ssh-add ~\/.ssh\/id_rsa<\/p>\n<p>3. En bitbucket en administrar perfil ir a crear clave ssh.<br \/>Copiar el fichero &nbsp;~\/.ssh\/id_rsa en un clave nueva.<\/p>\n<p><span style=\"display: inline;\"><code>xclip -sel clip &lt; ~\/.ssh\/id_rsa.pub<\/code><\/span><\/p>\n<p>4. Crear el fichero: ~\/.ssh\/confg<\/p>\n<div>\n<pre>  Host bitbucket.org<br \/>  User git<br \/>  Hostname altssh.bitbucket.org<br \/>  IdentityFile ~\/.ssh\/git_id_rsa<br \/>  IdentitiesOnly yes<br \/>  Port 443<br \/><\/pre>\n<\/div>\n<p>5. Crear el fichero: gitclonealumnos.sh<\/p>\n<p>t=1<br \/>p=\u00bb\/home\/paco\/NetBeansProjects\/\u00bb<br \/>c=${p}\u00bbtema\u00bb${t}<br \/>if [ ! -d ${c} ];then<br \/>&nbsp;echo \u00abCreando $c\u00bb<br \/>&nbsp;mkdir ${c}<br \/>fi<br \/>ssh-add ~\/.ssh\/id_rsa<br \/>cd ${c}<br \/>for t in $(seq 7 200);do<br \/>&nbsp; &nbsp; git clone ssh:\/\/git@altssh.bitbucket.org:443\/1516ceed${t}\/1516ceed${t}prgt1e1<br \/>done<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Seguidamente se explica con descargar repositorios de bitbucket privados, es decir, con usuario y contrase\u00f1a, a trav\u00e9s de las firmas p\u00fablicas. 1. Crear fichero de clave publica: &nbsp;~\/.ssh\/id_rsassh-keygen2. Cargar la clave:ssh-add ~\/.ssh\/id_rsa 3. En bitbucket en administrar perfil ir a &hellip; <a href=\"http:\/\/aldarias.es\/wordpress\/decargar-repositorios-privados-bitbucket-con-script-en-bash\/\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,116,118],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-bash","category-bitbucket","category-git"],"_links":{"self":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":0,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/posts\/84\/revisions"}],"wp:attachment":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/media?parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/categories?post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/tags?post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}