Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- useradd -m john &&
- cd ~/.ssh/ &&
- rm -rf tmp_rsa* &&
- ssh-keygen -t rsa -b 4096 -C "john@email.com" -N '' -f john_rsa &&
- echo "#tmp_rsa" >> authorized_keys &&
- cat john_rsa.pub >> authorized_keys &&
- cat authorized_keys &&
- service ssh restart &&
- echo ">>> Done"
Add Comment
Please, Sign In to add comment