I just tested this and found at least 3 situations in which scp will return not a regular file
:
- File is actually a directory
- File is a named pipe (a.k.a. FIFO)
- File is a device file
Case #1 seems most likely. If you meant to transfer an entire directory structure with scp
use the -r
option to indicate recursive copy.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…