Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [[ $1 && $2 ]]
  4. then
  5. ssh-keygen -t rsa -f ./$1 -b 2048 -C "$2"
  6. else
  7. echo 'Usage: ./keygen.sh filename-for-key comment-for-key';
  8. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement