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: log SSH instructions #5413

Merged
merged 2 commits into from
Dec 12, 2024
Merged

test: log SSH instructions #5413

merged 2 commits into from
Dec 12, 2024

Conversation

r2k1
Copy link
Contributor

@r2k1 r2k1 commented Dec 11, 2024

/kind test

Log instruction on how to easy SSH into VM.

Example:

...
    exec.go:199: SSH Instructions: (VM will be automatically deleted after the test finishes, set KEEP_VMSS=true to preserve it or pause the test with a breakpoint before the test finishes)
        ========================
        az account set --subscription 8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8
        az aks get-credentials --resource-group abe2e-westus3 --name abe2e-kubenet-331fc --overwrite-existing
        kubectl exec -it debug-mariner-gxh2f -- bash -c "chroot /proc/1/root /bin/bash -c 'ssh -i sshkey10224010 -o PasswordAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5 [email protected]'"
...

@r2k1 r2k1 merged commit c0a50d0 into dev Dec 12, 2024
11 of 12 checks passed
@r2k1 r2k1 deleted the r2k1/ssh-helper branch December 12, 2024 20:37
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

Successfully merging this pull request may close these issues.

2 participants