Friday, 7 January 2011

share ssh key

step 1 is not necessary if the host computer has done this before

ssh-keygen -t dsa


Next is one line, change ip if necessary

cat ~/.ssh/id_dsa.pub | ssh 192.168.1.101 'cat >> ~/.ssh/authorized_keys; \
chmod 644 ~/.ssh/authorized_keys; \
cat ~/.ssh/authorized_keys'


ssh-add

No comments:

Post a Comment