代写Network | 分布式 – COMP 4057 Distributed and Cloud Computing

COMP 4057 Distributed and Cloud Computing

代写Network | 分布式 – 该题目是一个常规的分布式的练习题目代写, 是比较有代表性的Distributed and Cloud Computing等代写方向

network代做 代写network 计算机网络

Page 1 of 2

COMP 4057 Distributed and Cloud Computing

Port Forwarding

Introduction

You may want to work on the COMP 4057 labs from home. However, the research servers cannot be accessed outside the campus and the deployment cannot be done. This document explains how the port forwarding method solves the problem.

Software Requirement

If your computer is running with Microsoft Windows , you need to download and install PuTTY. The following is the download URL:

https://the.earth.li/~sgtatham/putty/latest/w64/putty-64bit-0.76-installer.msi

If your computer is running with macOS or Linux , you do not need to install any additional applications.

Port Forwarding

With a gateway server faith, we can redirect the network traffic from a host to another host. In our department, the host faith.comp.hkbu.edu.hk is the gateway server. We can establish a connection to it anywhere on the Internet. However, the research servers are located on our intranet. These servers cannot be accessed on the Internet.

The port forwarding links a specific port of user PC to a specific of csrXX. When a packet sends to the specific port of user PC, that packet will be redirected to the specific port of csrXX. User PC will be your computer and csrXX will be one of the research servers.

Page 2 of 2

Port Forward to Research Server

Before using the port forwarding, you should ensure your username and password. You need to use your COMP username and password to log into the gateway and servers. You may use the following URL to verify your COMP username and password.

https://www.comp.hkbu.edu.hk/v1/?page=login_intranet

Assumed that everything is ready. Lets launch a command prompt (Windows) or terminal (macOS/Linux) and run the following command:

Warning: If you run the following command with incorrect username, the COMP firewall will block your host IP address for an hour. Therefore, you must try the following command carefully.

Windows putty -l xxxxxxxx -L 22222:158.182.9.yy:22 faith.comp.hkbu.edu.hk

macOS ssh -o KexAlgorithms=diffie-hellman-group-exchange-sha1 oHostKeyAlgorithms=+ssh-rsa -l xxxxxxxx -L 22222:158.182.9.yy:22 faith.comp.hkbu.edu.hk

Linux ssh -l xxxxxxxx -L 22222:158.182.9.yy:22 faith.comp.hkbu.edu.hk

Where xxxxxxxx should be replaced with your COMP username, and yy should be replaced with the host ID of the research server you want to use. The following are the IP addresses of the research servers:

csr50 158.182.9. 40
to
csr54 158.182.9. 44

After running the port forwarding command as mentioned above, you can then connect the targeted research server using the following command in another command prompt or terminal:

Windows putty -l xxxxxxxx -P 22222 127.0.0.

macOS/Linux ssh -l xxxxxxxx -p 22222 127.0.0.