[OverTheWire System - Bandit] Level 13 >> Level 14

Level Goal

The password for the next level is stored in /etc/bandit_pass/bandit14 and can only be read by user bandit14. For this level, you don’t get the next password, but you get a private SSH key that can be used to log into the next level. Note: localhost is a hostname that refers to the machine you are working on

 

다음 레벨의 비밀번호는 /etc/bandit_pass/bandit14에 저장되며 bandit14 사용자만 읽을 수 있습니다. 이 수준의 경우 다음 암호를 얻지 못하지만 다음 수준에 로그인하는 데 사용할 수 있는 개인 SSH 키를 얻습니다.
참고: localhost는 작업 중인 시스템을 나타내는 호스트 이름입니다.

Hint

1. ssh 명령어

2. ssh key 사용법

Write Up

더보기

문제 설명에 나온 대로 ssh key/etc/bandit_pass/bandit14 파일을 확인을 하였다.
/etc/bandit_pass/bandit14 파일의 권한을 보니, 오직 소유자(bandit14)만 읽을 수 있었다.

 

구글에 ssh명령어 ssh key를 검색하니 ssh key로 로그인하는 방법을 알 수 있었다.
호스트는 문제 설명에서 localhost 설명이 나와있어서 호스트를 localhost로 설정하니 로그인이 됐다.

 

/etc/bandit_pass/bandit14 파일을 확인해보니, bandit14의 pw를 볼 수 있었다.

bandit14 :: 4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e