Envoy, Putty, SSH keys and connecting to ubuntu VPS
Hi everybody, I recently started to read about envoy, a suitable way to deploy my apps with a single command, it uses blade syntax too so it's a win-win, however there's an issue, I have been coonecting to my VPS with Putty and using a really hard to guess password (afaik a brute force attack would break my barrier), I have also read about SSH key pairs and honestly I'm a bit scared if I the private key file I'd get locked out of my server.
So I have a few questions:
-Once I create my SSH key pair, if I save these files into say Google Drive or similar, if I lose my laptop or gets stolen will I still be able to access my servers with the backup key files from my google drive accound?
-Would it be possible to run envoy run deploy command if have password auth instead f SSH keys? I haven't tried yet but maybe it'll ask me for my sudo password for a few commands (sudo, git) but that doesn't sound too bad honestly...
There are many ways to secure your server. So called
hard to guess password
is definately a bad idea. Take Envoy or (Envoyer) out of the picture for the moment. You need basically access to your servers. Lets start from scratch.
Get a Digital Ocean account and set up any server that way. You will see that DO UI allows you to upload your ssh keys anytime. So the scenario where you lose keys, is not even possible. You go to your machine, generate new set of keys and upload them to DO.
One step further is to get Laravel Forge. In hhere you can also upload your ssh keys. But what you get is just so much good and usefull stuff saving you hours of work that it is really no brainer.
The truth actually is that with Forge it is so easy to complete setup a new server that you no longer feel any attachment to any machines you have. If one goes 🍌 you do not spend hours trying to fix it. You just set up a new one.