tutorial · bandit

Bandit Level 27 → 28

Clone an SSH Git repository and inspect its working tree.

By

banditgitssh
Marks this level complete in your browser.

Goal

Clone the official bandit27-git repository over SSH and find the password in it.

Why this matters

Version-control investigation begins with an authenticated clone and deliberate inspection of repository files and status.

Progressive hints

  1. Hint 1

    Use the repository URL from the live official page.

  2. Hint 2

    Clone into a fresh local directory.

  3. Hint 3

    Read the repository's README after cloning.

Method

Run only the lines that match the evidence you observe.

workdir=$(mktemp -d /tmp/bandit27.XXXXXX) && cd "$workdir"
git clone ssh://bandit27-git@bandit.labs.overthewire.org:2220/home/bandit27-git/repo
cd repo && git status && ls -la && cat README

Expected non-secret observation

The authenticated clone creates a working tree whose README contains the next credential.

Explanation

Git transfers committed objects and checks out the default branch; SSH authenticates access to the challenge repository.

Troubleshooting

  • Copy the live URL from OverTheWire because protected email rendering can corrupt copied addresses.
  • Keep the nondefault SSH port in the URL.

Safety and cleanup

  • Use only the OverTheWire game host and your own local practice directory.
  • Do not paste a level password into this site, screenshots, notes, or submissions. Baitaphish never asks for credentials.
  • Treat commands as learning prompts: inspect paths and flags before running them.

Completion and next step

Use the recovered credential only in the official Level 28 login. Then mark this transition complete and continue.