0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linuxを実践的に学べるサイトを発見したのでやってみた。overthewire Bandit

Last updated at Posted at 2025-07-16

【初心者向け】OverTheWire「Bandit」でLinuxハンズオン体験!Level 0〜1 を攻略してみた

はじめに

「Linuxコマンドを覚えたいけど、手が動かない…」
そんな方にピッタリな、実践型の学習サイトを見つけました。

OverTheWire: Bandit
このサイトでは、ゲーム感覚でLinuxの基礎操作を学べます!

本記事では、Level 0〜1 の攻略手順を、実際に手を動かしながら解説していきます。
環境は Mac のターミナル さえあればOK。
SSHが使える方なら、すぐに始められます!


Level 0 - 初めてのSSH接続

The goal of this level is for you to log into the game using SSH.
The host to which you need to connect is bandit.labs.overthewire.org, on port 2220.
The username is bandit0 and the password is bandit0.

目標

まずはゲームサーバに SSHでログインすることがミッションです。

接続情報

項目 内容
Host bandit.labs.overthewire.org
Port 2220
Username bandit0
Password bandit0

ターミナルでの接続コマンド

ssh bandit.labs.overthewire.org -l bandit0 -p 2220

接続すると以下のようなメッセージが表示されます。

The authenticity of host 'bandit.labs.overthewire.org (xxx.xxx.xxx.xxx)' can't be established...
Are you sure you want to continue connecting (yes/no)?

→ yes と入力。
その後パスワードを求められるので bandit0 を入力します。

ログインに成功すると、以下のような ASCII アートとともに歓迎メッセージが表示されます。


      ,----..            ,----,          .---.
     /   /   \         ,/   .`|         /. ./|
    /   .     :      ,`   .'  :     .--'.  ' ;
   .   /   ;.  \   ;    ;     /    /__./ \ : |
  .   ;   /  ` ; .'___,/    ,' .--'.  '   \' .
  ;   |  ; \ ; | |    :     | /___/ \ |    ' '
  |   :  | ; | ' ;    |.';  ; ;   \  \;      :
  .   |  ' ' ' : `----'  |  |  \   ;  `      |
  '   ;  \; /  |     '   :  ;   .   \    .\  ;
   \   \  ',  /      |   |  '    \   \   ' \ |
    ;   :    /       '   :  |     :   '  |--"
     \   \ .'        ;   |.'       \   \ ;
  www. `---` ver     '---' he       '---" ire.org


Welcome to OverTheWire!

これで Level 0 クリア!

Level 1 - パスワードファイルを探せ

The password for the next level is stored in a file called readme located in the home directory.
Use this password to log into bandit1 using SSH.

目標

readme というファイルに次のレベルのパスワードが入っている。
それを使って bandit1 にログインする。

手順

まずファイルがあるか確認します。

ls
readme

ファイルがあるのを確認したら、中身を表示:

cat readme

出力内容

The password you are looking for is: ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If

この ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If が Level 1のパスワード です。コピーしておきましょう

ログアウトと再ログイン

一旦ログアウトします。

exit

次に、bandit1 として再度ログイン:

ssh bandit.labs.overthewire.org -l bandit1 -p 2220

パスワードは先ほど取得したものを使用。
ログインに成功すれば、Level 1 クリア!

終わりに

Linuxほぼ初心者の自分でもスムーズに進められて楽しかったです
手を動かしながら「なるほど、こうやってコマンドを使うのか」と実感できるのが良いですね。

今後も引き続きレベルを進めながら、学んだことをアウトプットしていきたいと思います!

今回使用したLinuxコマンド

コマンド 説明
ssh サーバに接続するコマンド
ls ファイル一覧を表示
cat ファイルの中身を表示
exit セッションの終了
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?