Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- xargs
- Eclipse
- profile
- Windows 10
- 줄바꿈 문자
- Quartz
- grep
- ssh
- context
- VirtualBox
- find
- GIT
- bash
- vscode
- Windows
- JavaScript
- Mac
- Source
- resource
- 단축키
- IntelliJ
- tomcat
- port
- plugin
- netsh
- web.xml
- import
- 네트워크
- maVen
- lsof
Archives
- Today
- Total
develog
[ssh] sshd_config 설정 본문
sshd_config 수정
sudo vi /etc/ssh/sshd_config
# /etc/ssh/sshd_config
Port 22
ListenAddress 0.0.0.0
ListenAddress ::
# root 로그인 비활성화
PermitRootLogin no
StrictModes yes
MaxAuthTries 6
MaxSessions 10
# 클라이언트가 300초 동안 입력이 없으면 연결을 종료시킴
TCPKeepAlive yes
ClientAliveInterval 300
ClientAliveCountMax 0
PasswordAuthentication no
PermitEmptyPasswords no
PubkeyAuthentication yes
# Expect .ssh/authorized_keys2 to be disregarded by default in future.
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
수정 후 ssh 서비스 재시작
sudo systemctl restart ssh # ubuntu
sudo systemctl restart sshd # centos
Comments