Created
September 23, 2019 21:04
-
-
Save unicornist/a10c0ec8decf90264448a72f5e01d1bb to your computer and use it in GitHub Desktop.
Revisions
-
unicornist created this gist
Sep 23, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ having any kind of command prompt that allows you to run basic linux commands (e.g. CAT) you could do the following: cat ~/.ssh/id_rsa.pub | ssh user@server "umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys" If you have no `id_rsa.pub` file you can create one like this: ssh-keygen -t rsa