Revisions
-
nickbayley renamed this gist
Apr 30, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
nickbayley revised this gist
Apr 30, 2015 . 1 changed file with 4 additions and 1 deletion.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 @@ -1,12 +1,15 @@ ## Simple Alternative to `ssh-copy-id` Replace `user` with the name of the user you want to ssh as. Replace the `ip` with the ip of the machine / host / vps you want to connect to. ``` shell cat ~/.ssh/id_rsa.pub | ssh user@ip "cat >> ~/.ssh/authorized_keys" ``` If the directory .ssh is not yet created on the machine / host / vps, use this small variation: ``` shell cat ~/.ssh/id_rsa.pub | ssh user@ip "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys" ``` -
nickbayley revised this gist
Apr 30, 2015 . 2 changed files with 12 additions and 8 deletions.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,12 @@ ## Windows alternative to ssh-copy-id Replace `user` with the name of the user you want to ssh as. Replace the `ip` with the ip of the machine / host / vps you want to connect to. ``` shell cat ~/.ssh/id_rsa.pub | ssh user@ip "cat >> ~/.ssh/authorized_keys" ``` If the directory .ssh is not yet created on the machine / host / vps, use this small variation: ``` shell cat ~/.ssh/id_rsa.pub | ssh user@ip "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys" ``` 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 @@ -1,8 +0,0 @@ -
nickbayley created this gist
Apr 28, 2015 .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,8 @@ # the below is a simple shell command which is similar in functionality to ssh-copy-id # replace user with the name of the user you want to ssh as # replace the ip with the ip of the machine / host / vps you want to connect to cat ~/.ssh/id_rsa.pub | ssh user@ip "cat >> ~/.ssh/authorized_keys" # if the directory .ssh is not yet created on the machine / host / vps, use this small variation: cat ~/.ssh/id_rsa.pub | ssh user@ip "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"