NAT Port Forwarding SSH VirtualBox | java php laravel linux mysql sql bootstrap html css query java php laravel linux mysql sql bootstrap html css query: NAT Port Forwarding SSH VirtualBox

Saturday, December 28, 2024

NAT Port Forwarding SSH VirtualBox

 Port Forwarding memungkinkan Host terhubung ke Guest meskipun NAT tidak mendukung ping langsung.

  1. Buka VirtualBox > Settings > Network > Adapter 1 (NAT) > Advanced > Port Forwarding.

  2. Tambahkan aturan baru:

    • Name: SSH
    • Protocol: TCP
    • Host IP: 127.0.0.1
    • Host Port: 2222
    • Guest IP: 10.0.2.15
    • Guest Port: 22
  3. Restart Guest OS.

  4. SSH dari Host ke Guest:

    ssh username@127.0.0.1 -p 2222


No comments:

Post a Comment

saifiahmada.com adalah blog belajar programming Indonesia, membahas lengkap materi bahasa pemrograman: code HTML, CSS, Bootstrap, Desain, PHP, MySQL, coding Java, Query, SQL, dan dunia linux