标题当使用scp命令在linux之间传输文件时
[root@localhost mysqlbackup]# scp /usr/local/src/mysqlbackup/mysql_full_20240828.tar.gz 192.168.222.213:/usr/local/src/mysql/
The authenticity of host '192.168.222.213 (192.168.222.213)' can't be established.
ECDSA key fingerprint is SHA256:ik5ua02Q6TMns5dpk+cCZRNo5BiqXjafeifmtPwKLQ4.
ECDSA key fingerprint is MD5:4f:a3:19:13:aa:86:99:79:60:5e:05:b7:9d:1f:2b:aa.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '192.168.222.213' (ECDSA) to the list of known hosts.
Authentication failed.
lost connection
别被这个问题吓到,再连一次输入密码就好了
[root@localhost mysqlbackup]# scp /usr/local/src/mysqlbackup/mysql_full_20240828.tar.gz 192.168.222.213:/usr/local/src/mysql/
root@192.168.222.213's password: