Linux/SSH: Difference between revisions
< Linux
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
slave: | |||
<pre> | <pre> | ||
ssh-keygen -t rsa | ssh-keygen -t rsa | ||
</pre> | </pre> | ||
master: | |||
<pre> | <pre> | ||
cat ~/.ssh/*.pub | ssh user@remote-system 'umask 077; cat >>.ssh/authorized_keys' | cat ~/.ssh/*.pub | ssh user@remote-system 'umask 077; cat >>.ssh/authorized_keys' | ||
</pre> | </pre> |
Revision as of 14:52, 5 October 2012
slave:
ssh-keygen -t rsa
master:
cat ~/.ssh/*.pub | ssh user@remote-system 'umask 077; cat >>.ssh/authorized_keys'