- 우분투 ssh 서버 설치
- 우분투 sshd 설치
- 우분투 sshd 설정
1 설치 확인[ | ]
Console
Copy
root@ubuntu:~# netstat -ntlp | grep sshd
root@ubuntu:~# service ssh status
ssh: unrecognized service
- → 설치 안됨
Console
Copy
root@ubuntu:~# dpkg --get-selections | grep ssh
openssh-client install
- → openssh-client만 설치되어 있다. openssh-server가 필요하다.
2 설치 및 시작[ | ]
Console
Copy
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]?
Console
Copy
... (생략)
Setting up ssh-import-id (2.10-0ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig defferred processing now taking place
Console
Copy
root@zetawiki:~# service ssh restart
ssh stop/waiting
ssh start/running, process 1702
3 확인[ | ]
Console
Copy
root@ubuntu:~# dpkg --get-selections | grep ssh
openssh-client install
openssh-server install
ssh-import-id install
Console
Copy
root@ubuntu:~# service ssh status
ssh start/running, process 1702
Console
Copy
root@ubuntu:~# ps -ef | grep sshd | grep -v grep
root 1702 1 0 03:53 ? 00:00:00 /usr/sbin/sshd -D
Console
Copy
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 참고[ | ]
편집자 Jmnote Jmnote bot 49.161.211.133
로그인하시면 댓글을 쓸 수 있습니다.