diff --git a/lib/pip.js b/lib/pip.js index 7d1777a4..ab165deb 100644 --- a/lib/pip.js +++ b/lib/pip.js @@ -212,6 +212,8 @@ function installRequirements(targetFolder, serverless, options) { '-e', 'SSH_AUTH_SOCK=/tmp/ssh_sock' ); + chmod_cmd = ['chmod', '600', '/root/.ssh/id_rsa']; + pipCmds.unshift(chmod_cmd); } // If we want a download cache...