본문 바로가기

개발/Server

[Linux] Ubuntu를 PuTTY로 접속하기

PuTTY

 

SSH

 Secure Shell Protocol, 즉 네트워크 프로토콜 중 하나로 컴퓨터와 컴퓨터가 인터넷과 같은 Public Network를 통해 서로 통신을 할 때 보안적으로 안전하게 통신을 하기 위해 사용하는 프로토콜입니다. 대표적인 사용의 예는 다음과 같습니다.

 

  1. 데이터 전송
  2. 원격 제어

그렇다면 FTP나 Telnet과 같은 다른 컴퓨터와 통신을 위해 사용되는 프로토콜도 있는데 SSH를 사용하는가를 생각해볼 수 있습니다. 그 이유는 물론 "보안"입니다. 만일 예로 언급한 두 프로토콜을 통해 민감한 정보(예를 들어 로그인 정보)를 주고받는다면 정보를 직접 네트워크를 통해 넘기기 때문에 누구나 해당 정보를 열어볼 수 있어 보안에 상당히 취약합니다.

 

 

1. SSH Ubuntu에 설치

 

sudo apt-get install ssh

$ openssh-server 설치

sudo apt-get install openssh-server

$ ssh 재시작

sudo /etc/init.d/ssh restart

$ ifconfig로 ip 주소 확인

   ifconfig가 실행되지 않는다면 다음을 통해 net-tools를 설치를 해줍니다.

sudo apt install net-tools

 

 

2. PuTTY Download

 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 

 

Download PuTTY: latest release (0.76)

This page contains download links for the latest released version of PuTTY. Currently this is 0.76, released on 2021-07-17. When new releases come out, this page will update to contain the latest, so this is a good page to bookmark or link to. Alternativel

www.chiark.greenend.org.uk

 

$ Next> Next> Install>

 

3. Port Fowarding (Ubuntu virtual Box에서 설정)

$ [설정] -> [네트워크] -> [고급] -> '포트포워딩'

$ 이름 SSH (본인이 맘에 드는 것으로)

   호스트IP와 호스트포트와 게스트 포트는 22로 해준다.

 

4. Putty 접속

 

$ HostName은 방금 설정한 호스트IP와 똑같이 해주면 된다.

   port는 22 (SSH)

 

$ Accept>

 

 

$ 우분투 UserName과 Password 입력

 

$ 정상접속되면 아래의 창이 뜬다.

 

 

 

완료!