问题:
scp 时,提示Temporary failure in name resolution
-rw-rw-rw- 1 root root 20 Nov 24 17:25 aaa-3566-2021.11.24-17:04:02.core.gz
scp aaa-3566-2021.11.24-17:04:02.core.gz test@192.168.120.101:/home/
ssh: Could not resolve hostname aaa-3566-2021.11.24-17: Temporary failure in name resolution
解决方案:
在文件名前加上./
如下:
scp ./aaa-3566-2021.11.24-17:04:02.core.gz test@192.168.120.101:/home/
The authenticity of host '192.168.120.101 (192.168.120.101)' can't be established.
ECDSA key fingerprint is 0b:cc:93:28:7b:b8:4c:35:c1:05:39:43:07:62:ff:7d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.120.101' (ECDSA) to the list of known hosts.
test@192.168.120.101's password: