Give the new developer SSH access to the droplet for deployments.
Steps:
- Ask dev to generate an SSH key if they don't have one:
ssh-keygen -t ed25519 -C "name@mightyandtrue.com"
- They send you their public key (
~/.ssh/id_ed25519.pub)
- Add it to the droplet:
ssh root@[droplet-ip] "echo 'PUBLIC_KEY' >> ~/.ssh/authorized_keys"
- Test:
ssh root@[droplet-ip] from their machine
Do not share your own private key or the root password.
Give the new developer SSH access to the droplet for deployments.
Steps:
ssh-keygen -t ed25519 -C "name@mightyandtrue.com"~/.ssh/id_ed25519.pub)ssh root@[droplet-ip] "echo 'PUBLIC_KEY' >> ~/.ssh/authorized_keys"ssh root@[droplet-ip]from their machineDo not share your own private key or the root password.