ssh bandit31@bandit.labs.overthewire.org -p 2220
#OoffzGDlzhAlerFJ2cAiz1D41JW1Mhmt
There is a git repository at ssh://bandit31-git@localhost/home/bandit31-git/repo. The password for the user bandit31-git is the same as for the user bandit31.
이전과 같dl git에서 찾으면 된다
git clone ssh://bandit31-git@localhost:2220/home/bandit31-git/repo
bandit31@bandit:/tmp/tmp.cYOLY9Uwqg/repo$ cat README.md
This time your task is to push a file to the remote repository.
Details:
File name: key.txt
Content: 'May I come in?'
Branch: master
이번에는 remote repository에 파일을 푸시하라고 나온다
May I come in? 이라는 내용의 key.txt를 만들고 add한다
bandit31@bandit:/tmp/tmp.cYOLY9Uwqg/repo$ git add key.txt
The following paths are ignored by one of your .gitignore files:
key.txt
gitignore이 설정되있단다 rm으로 지워버리자
bandit31@bandit:/tmp/tmp.cYOLY9Uwqg/repo$ rm .gitignore
이제 정상적으로 된다
git add key.txt
git commit -m 'test'
git push origin master
...
remote: Well done! Here is the password for the next level:
remote: rmCBvG56y58BXzv98yZGdO7ATVL5dW8y