Saying if I am deploying my application to the server using git, and the repository needs authentication to be pulled, it will be very convenient if I just upload my private key there.
However is it a good idea to do so?
Saying if I am deploying my application to the server using git, and the repository needs authentication to be pulled, it will be very convenient if I just upload my private key there.
However is it a good idea to do so?
If you're talking about the private key you use to authenticate to your server, then absolutely not. That key needs to truly stay private, never leaving your machine, and definitely encrypted with a passcode. If you need to deploy software from your server, then generate a separate key pair for that purpose, that has severely restricted privileges on the systems its deploying from.