IT
ssh root 로 접속 하기
우선 ssh 폴더로 찻아 들어 간다.
cd /etc/ssh
vim sshd_config
(vim 설치기)
Port 22 #접속 포트 지정
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
PermitRootLogin yes #이부분 yes로 변경
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#PubkeyAuthentication yes
저장 후
service ssh restart
그러면 끝!
댓글
아직 댓글이 없습니다.
로그인 후 댓글을 남길 수 있습니다.