리눅스 서버로 파일 전송

2023-02-07

winsdows powershell 열기

scp 명령오로 파일 보내기

scp [파일명] [서버계정ID]@[서버계정IP]:[디렉토리위치]/[받을경로]

scp .\automation_20211209.zip iochord@192.168.44.141:/home/iochord

오류나는 경우

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:/jNnbetTB9k3EMPVjbLBlnfu1SUFykXRnWRGgDI1O8Y.
Please contact your system administrator.
Add correct host key in C:\\Users\\ygjung/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\ygjung/.ssh/known_hosts:7
ECDSA host key for 192.168.44.141 has changed and you have requested strict checking.
Host key verification failed.
lost connection

전자서명 중 하나인 ECDSA가 관련해서 일치하지 않아 뜨는 메시지라고 하는데, 사실 잘은 모르겠고, 아래의 명령어를 입력하면 해결이 된다.

ssh-keygen -R [서버계정IP]

ssh-keygen -R 192.168.44.141

results matching ""

    No results matching ""

    99 other / uml

    04 react / JSX