Advertisement
v1ral_ITS

openssh easy install and start UBUNTU

Jul 10th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. #!/bin/bash
  2. if [[ $UID == 0 ]]; then
  3. apt-get install openssh-server -y
  4. systemctl is-enabled ssh
  5. systemctl is-active ssh
  6. else
  7. echo "Script must be ran as root!"
  8. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement