bandit계정으로 로그인한 후 ssh나 git으로 연결하려고 하면 안되요 ㅠㅠ
bandit27@bandit:/tmp/myclone1$ git clone ssh://bandit27-git@localhost/home/banidt27-git/repo
Cloning into 'repo'...
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ED25519 key fingerprint is SHA256:C2ihUBV7ihnV1wUXRb4RrEcLfXC5CXlhmAAM/urerLY.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Could not create directory '/home/bandit27/.ssh' (Permission denied).
Failed to add the host to the list of known hosts (/home/bandit27/.ssh/known_hosts).
This is an OverTheWire game server.
More information on http://www.overthewire.org/wargames
!!! You are trying to log into this SSH server on port 22, which is not intended.
bandit27-git@localhost: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
동영상대로 해보면 위와 같이 나오고 password 치기도 전에 연결이 끊기는데 왜 그런지 알 수 있을까요???
Answer 1
1
안녕하세요. 최근들어 서버 정책이 변경됨에따라 22번 포트로의 접속이 제한되고 있습니다.
전달하여주신 오류 메시지 에도 관련 오류가 표시되고 있습니다(!!! You are trying to log into this SSH server on port 22, which is not intended.).
이에 따라 아래와 같이 포트 번호를 지정하면 해결하실 수 있습니다.
1번은 서버에 접속한 상태에서 활용하는 명령어이며, 2번은 서버 외부에서 접속 시 사용가능한 명령어입니다. 참고하시면 되겠습니다.
git clone ssh://bandit27-git@localhost:2220/home/banidt27-git/repo
git clone ssh://bandit27-git@bandit.labs.overthewire.org:2220/home/banidt27-git/repo
Bandit 16 RSA키가 안나와요
0
1044
2
실습 환경구축
0
301
1
계정으로 안들어가져요
0
330
2
nc -zvnw로 하면 권한 거부되었다가 ssh -p 2220 -i 로 하니까 되는 이유
0
396
1
weechat 명령어 오류
0
500
2
L23->L24 권한 거부 때문에 작성한 쉘코드를 실행 할 수가 없어요
0
698
1
ssh 명령어 쓸 때 권한 거부됬다고 떠요
0
576
1
enter passpharse for key
0
266
1
로드맵 질문이여
0
239
1
ssh로 bandit접속시 렉이 너무 심합니다.
0
711
1
command가 없다고 합니다
0
293
1
bandit16 -> 17
0
289
1
weechat 설치 오류
0
311
1
weechat 설치 오류
0
320
1
weechat 설치가 안되요ㅠㅠ
0
285
1
맥북사용중인데 맥북으로는 안되는건가요?
0
615
1
5분 초반대 즈음에
0
275
1
링크주소
2
496
0
레벨 0 ssh 명령어 timed out
0
292
1
초기 세팅
0
336
2
weechat 설치가 안되는데요?
0
331
2
bandit_pass
0
300
1
nc 사용법 질문
0
237
1
nc와 ssh
0
774
1

