How to disable ssh login? or recover a ssh key

Posted March 15, 2018 3k views

Hello, Im taking over the admin of our servers, but the previous admin didn’t give us the ssh keys to connect to the servers, he configure every thing to his machine, and said that he no longer have them. I reseted the passwords but I can’t connect via terminal to any servers to add my own keys, there is a way to stop the ssh?, I tried to stop the ssh from the console on the droplet security section but it said that service.ssh don’t loaded .

There is any suggestion to fix this?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

What OS are you running?

What terminal method are you talking about?

there are 3 ubuntus 14.04 and 2 servers with CentOs 7.0. Terminal method? Im refering from my laptop terminal trying to open a ssh connection to the servers.

The terminal thet works is the terminal that open on the droplet:access console