/ Published in: Bash

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# goto ssh dir ~/.ssh # if not existing, first create folder mkdir ~/.ssh && chmod 700 ~./.ssh # Generate Keypair - Enter and password ssh-keygen -t dsa # export key to your server cat id_dsa.pub | ssh root@yourserver.com 'cat >>~/.ssh/authorized_keys' # now you can login ssh root@yourserver.com
Comments
