NYCU-SDC / front-end-training

0 stars 0 forks source link

Remote SSH cannot connect to SDC VMs #3

Closed kdotwei closed 3 months ago

kdotwei commented 3 months ago

Issue

Remote SSH cannot connect to the SDC VMs.

Possible Problems

I trace the install.sh in the code-server installation script. I found it will get stuck while doing the curl to https://github.com/coder/code-server/releases/latest.

kdotwei commented 3 months ago

Alternative Solutions

Please use the SFTP extension to address the current issue as a temporary solution. This extension allows you to synchronize files between your local machine and a remote server using the SFTP protocol, providing a convenient way to transfer files securely.

1. Make a directory on your local computer to sync data on the server.

[!NOTE] You can make this directory anywhere and with any name on your computer.

2. Open this directory with VSCode.

3. Install this extension.

[!IMPORTANT] The author is Satiro Marra!

4. Make a config file

  1. Open the command box with ctrl+shift+p in VSCode. (Box with > symbol.)
  2. Type sftp and select the SFTP: config

5. Complete this config file.

Name

sdc-id is your VM ID with the tag sdc.

[!TIP] When you log into your VM, you'll get this message on the terminal: ansible@vm-id.

Host

The host is your server IP.

Username

The login username. It is ansible on your VM.

Remote Path

It is the path on the server you want to synchronize down to your computer.

Ignore remote files/folders

[!CAUTION] Only .vscode here!

Private Key

The private key path is ~/.ssh/id_sdc_300a10 and replaces ~ with the absolute path.

[!TIP] If you forget the absolute path of ~, you can cd to ~ and pwd to get the absolute path.

And save it.

[!NOTE] You don't need to change other settings.

6. Sync Both

Open the command box with ctrl+shift+p in VSCode again. And type sftp, and select the SFTP: Sync Both Dirctions.

7. Developing!

You can develop locally, and the SFTP extension will sync your work automatically now.

amandahsieh commented 3 months ago

If you encountered any problem, you are welcomed to paste the process and the current status in the comment.

kdotwei commented 3 months ago

Live discussion channel: Discord channel front-end-training

kdotwei commented 3 months ago

Solution

We change the MTU of each VM's interfaces, and @steveyiyo changes the mss on his router. All discussions are on the live channel front-end-training.