"우분투 sshd 설치"의 두 판 사이의 차이

5번째 줄: 5번째 줄:
==설치 확인==
==설치 확인==
<source lang='dos'>
<source lang='dos'>
jmnote@ubuntu:~$ service ssh status
jmnote@ubuntu:~# netstat -ntlp | grep sshd
jmnote@ubuntu:~# service ssh status
ssh: unrecognized service
ssh: unrecognized service
</source>
</source>
:→ 설치 안됨
:→ 설치 안됨
<source lang='dos'>
jmnote@ubuntu:~# dpkg --get-selections | grep ssh
</source>


==설치 및 시작==
==설치 및 시작==
<source lang='dos'>
<source lang='dos'>
jmnote@ubuntu:~$ sudo apt-get install openssh-server
jmnote@ubuntu:~# apt-get install openssh-server
[sudo] password for jmnote:
[sudo] password for jmnote:
</source>
</source>
48번째 줄: 52번째 줄:
</source>
</source>
<source lang='dos'>
<source lang='dos'>
root@ubuntu:~# netstat -ntlp
root@ubuntu:~# netstat -ntlp | grep sshd
Active Internet connections (only servers)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name

2013년 11월 21일 (목) 20:52 판

우분투 ssh 서버 설치
우분투 sshd 설치
우분투 sshd 설정

1 설치 확인

jmnote@ubuntu:~# netstat -ntlp | grep sshd
jmnote@ubuntu:~# service ssh status
ssh: unrecognized service
→ 설치 안됨
jmnote@ubuntu:~# dpkg --get-selections | grep ssh

2 설치 및 시작

jmnote@ubuntu:~# apt-get install openssh-server
[sudo] password for jmnote:
Reading package lists... Done
Building dependency tree
Reading state information... Done 
The following extra packages will be installed: 
  libwrap0 ssh-import-id tcpd 
Suggested packages: 
  ssh-askpass rssh molly-guard openssh-blacklist openssh-blacklist-extra 
  monkeysphere 
The following NEW packages will be installed: 
  libwrap0 openssh-server ssh-import-id tcpd 
0 upgraded, 4 newly installed, 0 to remove and 54 not upgraded. 
Need to get 425 kB of archives. 
After this operation, 1,167 kB of additional disk space will be used. 
Do you want to continue [Y/n]?
... (생략)
Setting up ssh-import-id (2.10-0ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig defferred processing now taking place

3 확인

jmnote@ubuntu:~$ service ssh status
ssh start/running, process 1304
jmnote@ubuntu:~$ ps -ef | grep sshd | grep -v grep
root      1304     1  0 16:00 ?        00:00:00 /usr/sbin/sshd -D
root@ubuntu:~# netstat -ntlp | grep sshd
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1304/sshd       
tcp6       0      0 :::22                   :::*                    LISTEN      1304/sshd

4 같이 보기

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}