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

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
 
(사용자 3명의 중간 판 16개는 보이지 않습니다)
4번째 줄: 4번째 줄:


==설치 확인==
==설치 확인==
<source lang='dos'>
<source lang='console'>
jmnote@ubuntu:~$ service ssh status
root@ubuntu:~# netstat -ntlp | grep sshd
root@ubuntu:~# service ssh status
ssh: unrecognized service
ssh: unrecognized service
</source>
</source>
:→ 설치 안됨
:→ 설치 안됨
<source lang='console'>
root@ubuntu:~# dpkg --get-selections | grep ssh
openssh-client install
</source>
:→ openssh-client만 설치되어 있다. openssh-server가 필요하다.


==설치 및 시작==
==설치 및 시작==
<source lang='dos'>
<source lang='console'>
jmnote@ubuntu:~$ sudo apt-get install openssh-server
root@ubuntu:~# apt-get install openssh-server
[sudo] password for jmnote:
</source>
<source lang='dos'>
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Building dependency tree
31번째 줄: 34번째 줄:
Do you want to continue [Y/n]?
Do you want to continue [Y/n]?
</source>
</source>
<source lang='dos'>
<source lang='console'>
... (생략)
... (생략)
Setting up ssh-import-id (2.10-0ubuntu1) ...
Setting up ssh-import-id (2.10-0ubuntu1) ...
Processing triggers for libc-bin ...
Processing triggers for libc-bin ...
ldconfig defferred processing now taking place
ldconfig defferred processing now taking place
</source>
<source lang='console'>
root@zetawiki:~# service ssh restart
ssh stop/waiting
ssh start/running, process 1702
</source>
</source>


==확인==
==확인==
<source lang='dos'>
<source lang='console'>
jmnote@ubuntu:~$ service ssh status
root@ubuntu:~# dpkg --get-selections | grep ssh
ssh start/running, process 1304
openssh-client install
openssh-server install
ssh-import-id install
</source>
<source lang='console'>
root@ubuntu:~# service ssh status
ssh start/running, process 1702
</source>
<source lang='console'>
root@ubuntu:~# ps -ef | grep sshd | grep -v grep
root      1702    1  0 03:53 ?        00:00:00 /usr/sbin/sshd -D
</source>
</source>
<source lang='dos'>
<source lang='console'>
jmnote@ubuntu:~$ ps -ef | grep sshd | grep -v grep
root@ubuntu:~# netstat -ntlp | grep sshd
root     1304    1  0 16:00 ?        00:00:00 /usr/sbin/sshd -D
tcp        0      0 0.0.0.0:22              0.0.0.0:*              LISTEN      1702/sshd     
tcp6      0     0 :::22                  :::*                    LISTEN      1702/sshd
</source>
</source>


51번째 줄: 70번째 줄:
*[[sshd]]
*[[sshd]]
*[[우분투 root 계정 로그인]]
*[[우분투 root 계정 로그인]]
*[[openssh-server : Depends: libwrap0 but it is not installable]]


==참고 자료==
==참고==
*http://towanouta.tistory.com/71
*http://towanouta.tistory.com/71


[[분류: Ubuntu]]
[[분류: Ubuntu]]

2017년 7월 19일 (수) 23:00 기준 최신판

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

1 설치 확인[ | ]

root@ubuntu:~# netstat -ntlp | grep sshd
root@ubuntu:~# service ssh status
ssh: unrecognized service
→ 설치 안됨
root@ubuntu:~# dpkg --get-selections | grep ssh
openssh-client					install
→ openssh-client만 설치되어 있다. openssh-server가 필요하다.

2 설치 및 시작[ | ]

root@ubuntu:~# apt-get install openssh-server
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
root@zetawiki:~# service ssh restart
ssh stop/waiting
ssh start/running, process 1702

3 확인[ | ]

root@ubuntu:~# dpkg --get-selections | grep ssh
openssh-client					install
openssh-server					install
ssh-import-id					install
root@ubuntu:~# service ssh status
ssh start/running, process 1702
root@ubuntu:~# ps -ef | grep sshd | grep -v grep
root      1702     1  0 03:53 ?        00:00:00 /usr/sbin/sshd -D
root@ubuntu:~# netstat -ntlp | grep sshd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1702/sshd       
tcp6       0      0 :::22                   :::*                    LISTEN      1702/sshd

4 같이 보기[ | ]

5 참고[ | ]

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