정보보안(구버전)/Kali Linux 설치 2016. 11. 25. 20:35

Kali Linux 설치 - 5. Putty를 이용한 SSH 접속 방법

 

 

 

root@kali:~# vi /etc/ssh/sshd_config

 

# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

~ 중간 생략 ~

 

/PermitRoot  <- 검색

 

 

 

# Authentication:
LoginGraceTime 120
PermitRootLogin without-password   <-- PermitRootLogin yes 변경

 

: wq!

 

 

 

root@kali:~# service ssh restart
root@kali:~# service ssh status
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled)
   Active: active (running) since 금 2016-11-25 20:10:28 KST; 5s ago
 Main PID: 1774 (sshd)
   CGroup: /system.slice/ssh.service
           └─1774 /usr/sbin/sshd -D

11월 25 20:10:28 kali sshd[1774]: Server listening on 0.0.0.0 port 22.
11월 25 20:10:28 kali sshd[1774]: Server listening on :: port 22.
root@kali:~#

 


root@kali:~#  update-rc.d -f ssh enable 2 3 4 5
root@kali:~#

 

 

 

 


 

Posted by 김정우 강사(카카오톡 : kim10322)
,


Q