Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ $UID == 0 ]]; then
- apt-get install openssh-server -y
- systemctl is-enabled ssh
- systemctl is-active ssh
- else
- echo "Script must be ran as root!"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement