{"_path":"/knowledge-base/ssh-cheatsheet","_draft":false,"_partial":false,"_empty":false,"title":"SSH: Cheatsheet","description":"","excerpt":{"type":"root","children":[{"type":"element","tag":"h1","props":{"id":"ssh-cheatsheet"},"children":[{"type":"text","value":"SSH: Cheatsheet"}]},{"type":"element","tag":"h2","props":{"id":"generate-ssh-key-pair"},"children":[{"type":"text","value":"Generate ssh key pair"}]},{"type":"element","tag":"code","props":{"code":"mkdir ~/.ssh\ncd ~/.ssh\nssh-keygen -t rsa\n"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"text","value":"mkdir ~/.ssh\ncd ~/.ssh\nssh-keygen -t rsa\n"}]}]}]},{"type":"element","tag":"h2","props":{"id":"copy-ssh-key-to-clipboard"},"children":[{"type":"text","value":"Copy ssh key to clipboard"}]},{"type":"element","tag":"code","props":{"code":"cat ~/.ssh/id_rsa.pub | pbcopy\n","language":"shell"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"text","value":"cat ~/.ssh/id_rsa.pub | pbcopy\n"}]}]}]},{"type":"element","tag":"h3","props":{"id":"useful-alias"},"children":[{"type":"text","value":"Useful alias"}]},{"type":"element","tag":"code","props":{"code":"alias sshkey=\"cat ~/.ssh/id_rsa.pub | pbcopy\"\n","language":"shell"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"text","value":"alias sshkey=\"cat ~/.ssh/id_rsa.pub | pbcopy\"\n"}]}]}]}]},"public":true,"body":{"type":"root","children":[{"type":"element","tag":"h1","props":{"id":"ssh-cheatsheet"},"children":[{"type":"text","value":"SSH: Cheatsheet"}]},{"type":"element","tag":"h2","props":{"id":"generate-ssh-key-pair"},"children":[{"type":"text","value":"Generate ssh key pair"}]},{"type":"element","tag":"code","props":{"code":"mkdir ~/.ssh\ncd ~/.ssh\nssh-keygen -t rsa\n"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"style":{}},"children":[{"type":"text","value":"mkdir ~/.ssh\ncd ~/.ssh\nssh-keygen -t rsa"}]}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"copy-ssh-key-to-clipboard"},"children":[{"type":"text","value":"Copy ssh key to clipboard"}]},{"type":"element","tag":"code","props":{"code":"cat ~/.ssh/id_rsa.pub | pbcopy\n","language":"shell"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"style":{"color":"#C9D1D9"}},"children":[{"type":"text","value":"cat "}]},{"type":"element","tag":"span","props":{"style":{"color":"#FF7B72"}},"children":[{"type":"text","value":"~"}]},{"type":"element","tag":"span","props":{"style":{"color":"#C9D1D9"}},"children":[{"type":"text","value":"/.ssh/id_rsa.pub "}]},{"type":"element","tag":"span","props":{"style":{"color":"#FF7B72"}},"children":[{"type":"text","value":"|"}]},{"type":"element","tag":"span","props":{"style":{"color":"#C9D1D9"}},"children":[{"type":"text","value":" pbcopy"}]}]}]}]}]},{"type":"element","tag":"h3","props":{"id":"useful-alias"},"children":[{"type":"text","value":"Useful alias"}]},{"type":"element","tag":"code","props":{"code":"alias sshkey=\"cat ~/.ssh/id_rsa.pub | pbcopy\"\n","language":"shell"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"style":{"color":"#79C0FF"}},"children":[{"type":"text","value":"alias"}]},{"type":"element","tag":"span","props":{"style":{"color":"#C9D1D9"}},"children":[{"type":"text","value":" sshkey="}]},{"type":"element","tag":"span","props":{"style":{"color":"#A5D6FF"}},"children":[{"type":"text","value":"\"cat ~/.ssh/id_rsa.pub | pbcopy\""}]}]}]}]}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"generate-ssh-key-pair","depth":2,"text":"Generate ssh key pair"},{"id":"copy-ssh-key-to-clipboard","depth":2,"text":"Copy ssh key to clipboard","children":[{"id":"useful-alias","depth":3,"text":"Useful alias"}]}]}},"_type":"markdown","_id":"content:04.knowledge-base:ssh-cheatsheet.md","_source":"content","_file":"04.knowledge-base/ssh-cheatsheet.md","_extension":"md"}