When I try to use sftp to transfer a directory containing files, I get an error message:skipping non-regular file directory_nameThe directory contains a couple of files and two subdirectories.What am I doing wrong?
Using sftp to Transfer a Directory?
directory;recursive;sftp
sftp, like cp and scp, requires that when you copy a folder (and its contents, obviously), you have to explicitly tell it you want to transfer the folder recursively with the -r option.So, add -r to the command.