![]() |
|
[Ubuntu] Change SSH Login Keys - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88) +---- Forum: Linux (https://hackforums.net/forumdisplay.php?fid=85) +---- Thread: [Ubuntu] Change SSH Login Keys (/showthread.php?tid=5934219) |
Change SSH Login Keys - PerformanceDirectUSA - Jan 26, 2019 My partner and I had a falling out and I want to change all the SSH keys that he had access to, I use them too obviously. How do I go about changing both of the SSH keys for my ROOT and secondary accounts? RE: Change SSH Login Keys - SuckySucky - Jan 26, 2019 (Jan 26, 2019 12:25 PM)PerformanceDirectUSA Wrote: My partner and I had a falling out and I want to change all the SSH keys that he had access to, I use them too obviously. 1. Why is ssh access to root available ? 2. Generate a new pair of pub/priv keys 3. remove old public key from the system 4. Put your new public key on the system RE: Change SSH Login Keys - PerformanceDirectUSA - Jan 27, 2019 (Jan 26, 2019 01:00 PM)SuckySucky Wrote: 1. Why is ssh access to root available ? So like create a new public and private key on PuttyGen and then replace that in authorized_keys? RE: Change SSH Login Keys - Betty Blue - Jan 28, 2019 (Jan 27, 2019 11:05 PM)PerformanceDirectUSA Wrote: So like create a new public and private key on PuttyGen and then replace that in authorized_keys?Yes. And don't forget to remove the old keys. RE: Change SSH Login Keys - SuckySucky - Jan 28, 2019 (Jan 28, 2019 02:49 PM)Deadhead Wrote: Yes. Aaaand learn to take proper care of your private key. Don’t ever share it with anyone. Preferably, two different keys for two different devices. |