Skip to content

Instantly share code, notes, and snippets.

@developer-sdk
Created August 20, 2023 05:58
Show Gist options
  • Save developer-sdk/66be4ddc9c3010d9a5e99096c738ed87 to your computer and use it in GitHub Desktop.
Save developer-sdk/66be4ddc9c3010d9a5e99096c738ed87 to your computer and use it in GitHub Desktop.
############################
# ssh 배너 설정
# Banner에 파일 위치 설정
sudo vi /etc/ssh/sshd_config
# 위에 설정한 위치에 배너 파일 생성
sudo vi /etc/ssh/banner
# sshd 재시작
sudo systemctl restart sshd.service
############################
# motd
# 전체 실행 권한 제거
sudo chmod -x /etc/update-motd.d/*
# 필요한 설정 만 추가
sudo chmod +x /etc/update-motd.d/00-header
sudo chmod +x /etc/update-motd.d/50-landscape-sysinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment