3. ssh 설치하기
페이지 정보
작성자 관리자 댓글 0건 조회 5,964회 작성일 19-01-22 21:06본문
3. ssh 설치하기
설치확인
jklee@leejinkwan:~$ sudo -i
root@leejinkwan:~# sudo netstat -ntlp |grep sshd
root@leejinkwan:~#
ssh서버 설치하기
root@leejinkwan:~# apt-get install openssh-server
root@leejinkwan:~# service ssh restart
확인
root@leejinkwan:~# dpkg --get-selections | grep ssh
libssh-4:amd64 install
openssh-client install
openssh-server install
openssh-sftp-server install
ssh-import-id install
root@leejinkwan:~#
root@leejinkwan:~# service ssh status
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
Active: active (running) since Tue 2019-01-22 21:04:06 KST; 58s ago
Process: 3003 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Main PID: 3004 (sshd)
Tasks: 1 (limit: 4662)
CGroup: /system.slice/ssh.service
└─3004 /usr/sbin/sshd -D
1월 22 21:04:05 leejinkwan systemd[1]: Starting OpenBSD Secure Shell server...
1월 22 21:04:06 leejinkwan sshd[3004]: Server listening on 0.0.0.0 port 22.
1월 22 21:04:06 leejinkwan sshd[3004]: Server listening on :: port 22.
1월 22 21:04:06 leejinkwan systemd[1]: Started OpenBSD Secure Shell server.
root@leejinkwan:~# ps -ef | grep sshd | grep -v grep
root 3004 1 0 21:04 ? 00:00:00 /usr/sbin/sshd -D
root@leejinkwan:~# netstat -ntlp | grep sshd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3004/sshd
tcp6 0 0 :::22 :::* LISTEN 3004/sshd
root@leejinkwan:~#
댓글목록
등록된 댓글이 없습니다.