Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

mdem ubuntu ssh key

cat ~/.ssh/id_rsa.pub | ssh username@remote_host "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && cat >> ~/.ssh/authorized_keys"
 
PREVIOUS NEXT
Tagged: #mdem #ubuntu #ssh #key
ADD COMMENT
Topic
Name
6+7 =