상세 컨텐츠

본문 제목

#Ubuntu 20.04 LTS #6 ssh sever 설치

Ubuntu Terminal Life/R2Beginner

by the 義氣天秋™ 2020. 8. 2. 18:17

본문

// 리눅스는 역시 터미널라이프이다.. 외부접속이 가능하게 만드는 방법중 터미널 접속이다 즉 Telnet 접속이다..

// window 에서는 putty 를 통해 접속하고 putty 접속을 위해서 

// 우분투에 ssh server를  설치한다 

 

r2viewx@r2viewx:~$ sudo apt-get install openssh-server

 

r2viewx@r2viewx:~$ netstat -atn
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        5      0 192.168.0.2:44890       192.168.0.1:139         CLOSE_WAIT 
tcp        0      0 192.168.0.2:60682       211.231.99.250:443      ESTABLISHED
tcp        5      0 192.168.0.2:44226       192.168.0.1:139         CLOSE_WAIT 
tcp        0      0 192.168.0.2:60166       185.199.108.153:443     ESTABLISHED
tcp        0      0 192.168.0.2:57470       52.85.231.62:443        ESTABLISHED
tcp        1      0 192.168.0.2:54180       192.168.0.1:445         CLOSE_WAIT 
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN     
r2viewx@r2viewx:~$

 

//netstat -atn 을 통해 tcp  22  포트 22 번 을 확인하다 

 

 

r2viewx@r2viewx:~$ ssh localhost
r2viewx@localhost's password: 
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-42-generic x86_64)

 

//ssh localhost 로 테스트 접속 

 

r2viewx@r2viewx:~$ exit
로그아웃
Connection to localhost closed.
r2viewx@r2viewx:~$ 

 

// 이제 외부에서 접속해 보는걸로

 

관련글 더보기