Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Go to Project ComputeInstances menu (Step A), and check your VM instance is in Running Power State (Step A). From the Actions pull-down menu, choose Console.

  • Click on the black console screen, and log in with root username and temporary password (Step B).
  • First, change the root password and update the OS. Create a user account. Install desktop environment & remote desktop server.

    Code Block
    languagebash
    themeMidnight
    titleconfigure VM instance : remote desktop
    linenumberstrue
    ### Change root password
    $ passwd
    ### Update OS
    $ apt update && apt -y dist-upgrade
    ### Create a user account (recommended) : adduser {username}
    $ adduser kasi-user
    ### Grant sudo privilege to the user : usermod -aG sudo {username}
    $ usermod -aG sudo kasi-user
    ### Install dekstop environment (minimal installation is recommended)
    $ apt install xfce4 --no-install-recommends
    ### Install remote desktop server (RDP)
    $ apt install xrdp
    ### Reboot
    $ reboot


  • After reboot, log in to the console with the user account, and configure SMB client to mount user's external datastore (Step C).

    Code Block
    languagebash
    themeMidnight
    titleconfigure VM instance : external datastore
    linenumberstrue
    ### Install required pacakges : cifs-utils, smbclient
    $ sudo apt -y install cifs-utils smbclient
    ### Create a mount directory
    $ mkdir NAS
    ### Mount external datastore : mount.cifs -o rw,uid={local user},username={NAS user} {NAS address} {mount directory}
    $ sudo mount.cifs -o rw,uid=kasi-user,username=kasi-user //210.219.33.249/home NAS
    ### For more mount options : man mount.cifs
    ### Check if external datastore is mounted and the user has write permission
    $ df -H ; ls -l
    ### log out
    $ exit


Step A

Step B

Step C

5. Remote access to VM instances via SSH tunneling

  • Prepare the SSH keys (the same ones you registered in sign-up form). If you want to register another key pairs, e-mail the SSH public key file to Administrator(chr@kasi.re.kr).

  • Go to Project ComputeInstances menu, and find the public IP address (e.g., 210.219.33.X) of project gateway (e.g., User Project Gateway) from the instance list (Step A).
  • Install Remote Desktop Protocol (RDP) client software to your local computer, and set up the remote connection.

    • If RDP clients support SSH tunneling – remmina (Linux), MobaXterm (Windows), configure RDP session as follows:
      • Remote host address (10.0.X.X) : VM instance private IP (port 3389)
      • Remote host username : user account you created (recommended) or root
      • SSH gateway address (210.219.33.X) : project gateway public IP (port 7774)
      • SSH gateway username : kasi
    • If RDP clients do not support tunneling – CoRD (Mac), Microsoft Remote Desktop (Mac), create a SSH tunneling port first and connect through the local port. 

      Code Block
      languagebash
      themeMidnight
      titlecreate local RDP port for SSH tunnel
      linenumberstrue
      ### SSH tunneling : ssh -i {private key} -N -L {local RDP port}:{VM instance private ip}:{RDP port = 3389} {tunneling id = kasi}@{gateway ip} -p {ssh port = 7774}
      $ ssh -N -L 12345:10.0.100.42:3389 kasi@210.219.33.122 -p 7774
      ### Open RDP connection through localhost:{local RDP port}
      $ open rdp://localhost:12345


Step A

Image Added

Step B

Image Added

Step C

Image Added


Info

관련 문서

Content by Label
showLabelsfalse
max5
spacesHOW
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "HOW"
labelskb-how-to-article

...