728x90
우분투에서 ifconfig로 ip 확인하기!
user@ubuntu20: ~$ ifcconfig
Command 'ifconfig' not found, but can be installed with:
sudo apt install net-tools
user@ubuntu20: ~$ ip a
1: lo: <LOOPBACK, UP, LOWER_UP> mtu 56636 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/B scope host lo
...
2: ens33: <BROADCAST, ...
...
inet 192.168.@@@.@@@ <<< ip
powershell 들어가기
<아래 로그대로 수행>
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
새로운 기능 및 개선 사항에 대 한 최신 PowerShell을 설치 하세요! https://aka.ms/PSWindows
PS C:\Users\a9034> ssh user@192.168.@@@.@@@
The authenticity of host '192.168.@@@.@@@ (192.168.@@@.@@@)' can't be established.
ED25519 key fingerprint is SHA256:SZkIPQT3sTB2d9pluu00jnWUYbucPxMSml6sKH5nvSc.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.@@@.@@@' (ED25519) to the list of known hosts.
user@192.168.@@@.@@@'s password: <패스워드 입력>
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-153-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Wed 02 Aug 2023 08:11:10 AM UTC
System load: 0.08 Processes: 156
Usage of /: 14.0% of 61.71GB Users logged in: 1
Memory usage: 8% IPv4 address for ens33: 192.168.@@@.@@@
Swap usage: 0%
* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.
https://ubuntu.com/engage/secure-kubernetes-at-the-edge
112 updates can be installed immediately.
1 of these updates is a security update.
To see these additional updates run: apt list --upgradable
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
New release '22.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Wed Aug 2 08:02:22 2023
user@ubuntu20:~$
user@ubuntu20:~$
*RSA 공유키 충돌 문제 해결
PS C:\Users\a9034> ssh user@192.168.@@@.@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:riDtd_____________________________
Please contact your system administrator.
Add correct host key in C:\\Users\\a9034/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\a9034/.ssh/known_hosts:3
Host key for 192.168.186.128 has changed and you have requested strict checking.
Host key verification failed.
Man in the Middle Attack 이라는 일명 '중간자 공격'에 대해 경고한다. 즉, 기존에 서버가 알고있던 정보를 찾아서 따라갔더니- 기존과는 전혀 다른 서버로 접속되었다는 것이다.
위와 같은 오류가 난다면...
ssh-keygen -R 192.168.@@@.@@@
PS C:\Users\a9034> ssh-keygen -R 192.168.@@@.@@@
# Host 192.168.@@@.@@@ found: line 1
# Host 192.168.@@@.@@@ found: line 2
# Host 192.168.@@@.@@@ found: line 3
C:\Users\a9034/.ssh/known_hosts updated.
Original contents retained as C:\Users\a9034/.ssh/known_hosts.old
이 코드를 입력하면 해결된다!
PS C:\Users\a9034> ssh user@192.168.@@@.@@@
The authenticity of host '192.168.@@@.@@@@@@.@@@ (192.168.@@@.@@@)' can't be established.
ED25519 key fingerprint is SHA256:riDt____________________________
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.@@@.@@@' (ED25519) to the list of known hosts.
user@192.168.@@@.@@@'s password:
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-155-generic x86_64)
다시 접속 시도하면 잘 된다~
'Fuzzing' 카테고리의 다른 글
.. (0) | 2023.07.17 |
---|---|
[Fuzzing 101] Excersise 1 - Xpdf (0) | 2023.07.06 |
The Art, Science, and Engineering of Fuzzing: A Survey (0) | 2023.07.05 |