ssh-keygen -t dsa
set correct permissions of the
~/.ssh directorychmod 700 ~/.ssh && chmod 600 ~/.ssh/*
transfer your public key to a new server:
cat ~/.ssh/id_dsa.pub | ssh user@server \
'mkdir -p .ssh && cat >>.ssh/authorized_keys && \
chmod 700 .ssh && chmod 600 .ssh/*'
Ensure that permissions of the
~/.ssh directory are correct (as above).
Thanks, its simple and nice. However, that command is missing in OSX.
OdpovědětVymazatOf course, this should be "Linux" blog, but who cares;-).