✔ 문제풀이 해설이 상세함. 정답 스포 주의!!! ✔
계정 로그아웃 : ctrl + d 계정 로그인 : (로그아웃 상태에서) ssh 계정명@bandit.labs.overthewire.org -p 2220
암호는 /etc/bandit_pass/bandit14에 저장된다. => 해당 위치 열기
암호는 bandit14 사용자만 읽을 수 있다. => 암호를 직접 찾지 않고 위치를 넘겨서 접속하기
ssh -i [변경된 경로] user@sever_ip 개인키의 위치를 변경하여 접속 (암호없이 가능)
localhost : 컴퓨터 네트워크에서 사용하는 루프백 호스트명. 원격 컴퓨터인 것처럼 통신 가능.
(ifconfig 명령어 사용 시 LOOPBACK하는 것의 inet이 ifconfig)
ls (sshkey.private의 존재 확인)
-> cd ../ -> ls -> cd ./bandit14 -> ll -> cd ./.ssh -> ls (authorized_keys의 존재 확인)
-> ifconfig (localhost 확인)
-> ssh -i ~/sshkey.private bandit14@localhost -p 2220 -> yes
ssh -i ~/sshkey.private bandit14@localhost -p 2220