/etc/ssh/sshd_config파일을 에디터로 불러서 아래 라인을 주석처리한다. Call the /etc/ssh/ sshd_config file as an editor to annotate the line below.
#PasswordAuthentication no
service sshd restart 를 입력해서 sshd를 재시작한다.
Restart SSHD by entering the Service SSHD RESTART.
#apt install ubuntu-desktop -y
데스크탑부터 깔아본다.
약 2기가가 설치된다.
Let's install the desktop first.
About two gigabytes will be installed.
xfce를 이용하려면 apt install xubuntu-desktop으로 하면 된다.
GNOME이 조금 나을 것 같아서 GNOME을 설치하기로 한다.
To use xfce, you can use apt install xubuntu-desktop.
I think GNOME is a little better, so I decided to install GNOME.

Xrdp는 기본 우분투 리포지토리에 삽입되어 있다. 설치하려면 다음을 실행하십시오.
Xrdp is incuded in the default Ubuntu repositories. To install it, run:
apt install xrdp -y

설치가 완료된 이후에 xrdp가 서버부팅 시에 시작되도록 다음과 같이 입력한다.
Once the installation is complete, the Xrdp service will automatically start. You can verify it by typing:
systemctl status xrdp
3389포트를 열어야하는데, 아마 서버에서도 열어야하고, 오라클 네트워크 관리자에서도 열어주어야 한다.
The 3389 port should be open, perhaps open on the server, and open to Oracle Network Manager.
아래와 같이 입력해서 3389번 포트를 ens3이름의 이더넷을 통해서 열어준다.
그리고, 부팅시에도 적용되고 저장하고 다시 실행한다.
Enter the following to open port 3389 via Ethernet with the name ens3.
And it is applied to the boot time and it stores and it again practices.
#iptables -I INPUT 5 -i ens3 -p tcp --dport 3389 -m state --state NEW,ESTABLISHED -j ACCEPT
#netfilter-persistent save
#netfilter-persistent start


오라클클라우드에 로그인해서 해당 공용서브넷으로 들어간다.
Log into Oracle Cloud and enter the public subnet.

위와 같이 3389번 포트에 대한 수신규칙을 추가한다.
Add the reception rules for port 3389 as above.
이제 윈도우에서 원격데스크톱연결로 접속하면 끝이다.
Now you can connect to the Remote Desktop connection from Windows.


