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

# Set the sshd service to be started automatically #1379

Open
GONNAGITU72 opened this issue Feb 7, 2024 · 0 comments
Open

# Set the sshd service to be started automatically #1379

GONNAGITU72 opened this issue Feb 7, 2024 · 0 comments

Comments

@GONNAGITU72
Copy link

          # Set the sshd service to be started automatically

Get-Service -Name sshd | Set-Service -StartupType Automatic

Now start the sshd service

Start-Service sshd

ssh-keygen -t ed25519# By default the ssh-agent service is disabled. Configure it to start automatically.

Make sure you're running as an Administrator.

Get-Service ssh-agent | Set-Service -StartupType Automatic

Start the service

Start-Service ssh-agent

This should return a status of Running

Get-Service ssh-agent

Now load your key files into ssh-agent

ssh-add $env:USERPROFILE.ssh\id_ed25519steps:

  • uses: actions/checkout@v3

  • uses: actions/cache/restore@v3
    id: cache
    with:
    path: path/to/dependencies
    key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

  • name: Install Dependencies
    if: steps.cache.outputs.cache-hit != 'true'
    run: /install.sh

  • name: Build
    run: /build.sh

  • name: Publish package to public
    run: /publish.shsteps:

  • uses: actions/checkout@v3

  • name: Build
    run: /build-parent-module.sh

  • uses: actions/cache/save@v3
    id: cache
    with:
    path: path/to/dependencies
    key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}steps:

  • uses: actions/checkout@v3

  • uses: actions/cache/restore@v3
    id: cache
    with:
    path: path/to/dependencies
    key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

  • name: Install Dependencies
    if: steps.cache.outputs.cache-hit != 'true'
    run: /install.sh

  • name: Build
    run: /build-child-module.sh

  • name: Publish package to public
    run: /publish.shsteps:

  • uses: actions/checkout@v3

  • uses: actions/cache/restore@v3
    id: cache
    with:
    path: path/to/dependencies
    key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
    fail-on-cache-miss: true

  • name: Build
    run: /build.sh - name: Setup Node.js environment
    uses: actions/[email protected]

Originally posted by @GONNAGITU72 in github/docs#31497 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@GONNAGITU72 and others