Tuesday, 30 March 2021

ssh issue

 #!/bin/bash -xe

exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
  sleep 15
  systemctl restart sshd
  sudo systemctl restart sshd
  sleep 15
  netstat -tupln
  systemctl status sshd