Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: legacy server in Remote - SSH #208461

Closed
1 task done
connor4312 opened this issue Mar 22, 2024 · 0 comments
Closed
1 task done

Test: legacy server in Remote - SSH #208461

connor4312 opened this issue Mar 22, 2024 · 0 comments

Comments

@connor4312
Copy link
Member

connor4312 commented Mar 22, 2024

Refs: #206790

Complexity: 3

Authors: @connor4312, @deepak1556

Create Issue


This milestone we have changed which server the extension downloads depending on the OS support, the following test plan is to ensure successful connection over the different scenarios

Using Docker, set up a legacy VM on localhost that you can SSH into.

  1. Run docker run -p 2222:22 -it centos:7

  2. Run these commands. The last command will run the SSH server and block:

    > yum install openssh-server -y
    > echo 'root:mellon' | chpasswd
    > sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
    > sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
    > ssh-keygen -A
    > /usr/sbin/sshd -D
    
  3. In VS Code, run Remote - SSH: Connect current window to host. Add a new host using the command ssh root@localhost -p 2222.

  4. Connect to the host, using the password mellon when prompted. (If asked for an SSH key password, just hit enter so that it asks you for the root user password instead). Verify it works.

  5. In your user settings, set remote.SSH.useExecServer: false

  6. Reload the window and repeat step 4

@connor4312 connor4312 added this to the March 2024 milestone Mar 22, 2024
@lramos15 lramos15 removed their assignment Mar 25, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants