Difference between revisions of "Ssh linux"
From Teknologisk videncenter
(Created page with "ssh without a passphrase <source lang=bash> $ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa $ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys $ chmod 0600 ~/.ssh/authorized_keys <...") |
m |
||
Line 2: | Line 2: | ||
<source lang=bash> | <source lang=bash> | ||
$ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa | $ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa | ||
− | + | $cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys | |
− | + | $chmod 0600 ~/.ssh/authorized_keys | |
</source> | </source> | ||
[[category:Linux]] | [[category:Linux]] |
Revision as of 13:03, 25 June 2022
ssh without a passphrase
$ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
$cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
$chmod 0600 ~/.ssh/authorized_keys