Troubleshooting
Less than 1 minute
Troubleshooting κ΄λ ¨
ssh μ μ μ€λ₯
μ¦μ
ssh root@192.168.0.80 -p 22
#
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# @ 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 ECDSA key sent by the remote host is
# SHA256:FN2idP7a1ZW7gC+K7WeRuwZSfUqt4aQIMr9eRTbmM44.
# Please contact your system administrator.
# Add correct host key in <ν>/.ssh/known_hosts to get rid of this message.
# Offending ECDSA key in <ν>/.ssh/known_hosts:3
# ECDSA host key for 192.168.0.80 has changed and you have requested strict checking.
# Host key verification failed.
ν΄κ²°
- 컀맨λ λΆλ
# λΆλ
# μ±κ³΅
Secret μ¬λ±λ‘ νμ
.
<ν>/.ssh/
known_hosts
κ²½λ‘ /νμΌ μ‘΄μ¬νμΈ- ( μλμ° κ²½μ°)
%UserProfile%\.ssh\
known_hosts
- ( μλμ° κ²½μ°)
known_hosts
# 192.168.0.53 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHUE6W2QfyScJlHNodcrGQ+iwDNgTSJ5jy/7UJs8G+81JpXIvinLP33ZhJbKUHBTG7HjIq4EJwu+3jV9fJsuN7k=
# 192.168.0.50 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBH9mzi0fzuYaove5zhq+SlKBKtorAOlXLmwPSaToS45CoqV81vKaNH832BMJc5e9zOwUqNzF97kyJbd/01Bk5Nc=
# 192.168.0.80 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNMpHF9y+QPRcYG0XFAzlSCrpf1muxMzGyRbwvgZuxjoQ5462b6TeVGJUHFTaUgv9dgbXow3myaFM8fNVu1FEEM=
80
λ²μ λν μ κ·Ό Secret μ κ±°
ssh root@192.168.0.80 -p 22
#
# root@192.168.0.80's password:
# Web console: https://ovirt.ititinfo.com:9090/ or https://192.168.0.80:9090/
#
# Last login: Fri May 24 09:56:18 2024 from 192.168.0.51
μ€ν¬λ¦½νΈ μ€νμ€λ₯
/bin/sh^M
: bad interpreter: κ·Έλ° νμΌμ΄λ λλ ν°λ¦¬κ° μμ΅λλ€.
- π₯μ λμ€ κ°νλ¬Έμμ μλμ° κ°νλ¬Έμκ° μμ¬μμ κ²½μ° λ°μ
- πμ€ννλ €λ μ€ν¬λ¦½νΈμ λνμ¬ μλμ κ°μ΄ μ€ν
ν΄κ²°
sed -i -e 's/\r$//' <λ¬Έμ νμΌ.sh>
ν΄κ²°
vi <λ¬Έμ νμΌ.sh>
set fileformat=unix