Debian Codegraph @

.github/workflows/ssh_debug.yaml.donotrun

raw
1 name: Debug passwordless `ssh localhost`
2
3 on: [push, pull_request]
4
5 jobs:
6 test:
7 runs-on: ${{ matrix.os }}
8 strategy:
9 fail-fast: false
10 matrix:
11 os:
12 - ubuntu-latest
13 - macos-latest
14 # - windows-latest # FIXME https://github.com/dask/distributed/issues/4509
15
16 steps:
17 - name: Setup SSH
18 shell: bash -l {0}
19 run: bash continuous_integration/scripts/setup_ssh.sh
20
21 - name: Dump SSH config
22 shell: bash -l {0}
23 run: |
24 ls -ld ~ ~/.ssh ~/.ssh/*
25 for f in ~/.ssh/* /etc/ssh/sshd_config; do
26 echo ==================================
27 echo $f
28 echo ==================================
29 cat $f
30 done
31
32 - name: Test SSH vs. localhost
33 shell: bash -l {0}
34 run: ssh -vvv localhost 'echo hello world'
35
36 - name: Test SSH vs. 127.0.0.1
37 shell: bash -l {0}
38 run: ssh -vvv 127.0.0.1 'echo hello world'
39
40 - name: Test SSH vs. hostname
41 shell: bash -l {0}
42 run: ssh -vvv $(hostname) 'echo hello world'
43
44 - name: Debug with tmate on failure
45 if: ${{ failure() }}
46 uses: mxschmitt/action-tmate@v3