Tag: ssh keys

无法通过在Node.js中添加ssh-key来克隆克隆

# Write the SSH-KEY to the disk fs.writeFile "/cgrepos/.ssh/#{repo.id}.pub", repo.public_key, (err) -> throw err if err fs.writeFile "/cgrepos/.ssh/#{repo.id}", repo.private_key, (err) -> throw err if err exec "chmod 400 /cgrepos/.ssh/#{repo.id} && eval `ssh-agent -s` && ssh-add /cgrepos/.ssh/#{repo.id}", (error) -> throw error if error # First, delete the git repo on the hard drive, if it exists […]