반응형
1 설치 확인
#netstat -ntlp | grep sshd
#service ssh status
nadahacker@nada_ubuntu:~$ netstat -ntlp | grep sshd
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
nadahacker@nada_ubuntu:~$ service ssh status
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
Active: active (running) since Sat 2019-04-06 03:02:38 UTC; 2h 27min ago
Main PID: 2228 (sshd)
Tasks: 1 (limit: 1019)
CGroup: /system.slice/ssh.service
└─2228 /usr/sbin/sshd -D
Apr 06 03:02:38 nada_ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
Apr 06 03:02:38 nada_ubuntu sshd[2228]: Server listening on 0.0.0.0 port 22.
Apr 06 03:02:38 nada_ubuntu sshd[2228]: Server listening on :: port 22.
Apr 06 03:02:38 nada_ubuntu systemd[1]: Started OpenBSD Secure Shell server.
Apr 06 03:04:09 nada_ubuntu sshd[2349]: Accepted password for nadahacker from 19
Apr 06 03:04:09 nada_ubuntu sshd[2349]: pam_unix(sshd:session): session opened f
Apr 06 05:29:23 nada_ubuntu sshd[2508]: Accepted password for nadahacker from 19
Apr 06 05:29:23 nada_ubuntu sshd[2508]: pam_unix(sshd:session): session opened f
nadahacker@nada_ubuntu:~$
위내용처럼 나오지 않으면 설치가 안된것이다.. 본인은 설치를 한상태이다..
2 ssh 설치된정보를 본다.
#dpkg --get-selections | grep ssh
nadahacker@nada_ubuntu:~$ dpkg --get-selections | grep ssh
openssh-client install
openssh-server install
openssh-sftp-server install
ssh-import-id install
nadahacker@nada_ubuntu:~$
현재는 모두설치되어 있는 모습
3 ssh 설치
#sudo apt-get install openssh-server
nadahacker@nada_ubuntu:~$ sudo apt-get install openssh-server
[sudo] password for nadahacker:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
nadahacker@nada_ubuntu:~$
4 ssh 시작
#service ssh start
nadahacker@nada_ubuntu:~$ service ssh start
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'ssh.service'.
Authenticating as: nadahacker
Password:
==== AUTHENTICATION COMPLETE ===
5 ssh 상태 확인
#service ssh status
nadahacker@nada_ubuntu:~$ service ssh status
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
Active: active (running) since Sat 2019-04-06 03:02:38 UTC; 6h ago
Main PID: 2228 (sshd)
Tasks: 1 (limit: 1019)
CGroup: /system.slice/ssh.service
└─2228 /usr/sbin/sshd -D
Apr 06 03:02:38 nada_ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
Apr 06 03:02:38 nada_ubuntu sshd[2228]: Server listening on 0.0.0.0 port 22.
Apr 06 03:02:38 nada_ubuntu sshd[2228]: Server listening on :: port 22.
Apr 06 03:02:38 nada_ubuntu systemd[1]: Started OpenBSD Secure Shell server.
Apr 06 03:04:09 nada_ubuntu sshd[2349]: Accepted password for nadahacker from 19
Apr 06 03:04:09 nada_ubuntu sshd[2349]: pam_unix(sshd:session): session opened f
Apr 06 05:29:23 nada_ubuntu sshd[2508]: Accepted password for nadahacker from 19
Apr 06 05:29:23 nada_
반응형
'프로그래밍 > 잡동산이' 카테고리의 다른 글
[리눅스] 우분투 root 계정암호 설정 (0) | 2019.04.19 |
---|---|
[Hyperledger-fabric] 하이퍼레저 패브릭 설치 및 세팅 v1.2 (0) | 2019.04.09 |
[리눅스] IP확인 - ifconfig, ip addr show (0) | 2019.04.06 |
리눅스 백그라운드 작업 nohup (0) | 2019.04.06 |
리눅스 버전확인 (0) | 2019.04.04 |