permissions for 0644 are too open it is required that your code example Example: Permissions 0644 for '/root/.ssh/id_rsa' are too open. chmod 600 ~/.ssh/id_rsa