How to add a new SSH key to a server (even if you can't access it)

preview_player
Показать описание
In this tutorial, we'll take a look at how to recover SSH access to a server or add a new SSH key to a server even if you can't currently access it.

The example in the video uses Digital Ocean but most other services should offer you some sort of recover option so that you can log on to the server and perform a reset of some kind.

00:00 The problem
00:41 The recover console
02:02 Selecting the user account to reset
03:05 Getting the user's public key
03:20 The problem with Macs
04:10 Uploading to bashupload
05:20 Pulling the file from bashupload
06:35 Updating authorized_keys
07:01 Logging in :)
Рекомендации по теме
Комментарии
Автор

+1 for the Bashupload tip. Copy pasting from Windows 10 into noVNC (my service provider's web access console) was corrupting my public key text as well, and driving me CRAZY. Thank you for restoring my sanity.

bearcat