Score:0

How can I suppress . and .. when using curl against vsftpd?

py flag

When using curl to get a directory listing from a remote host running vsftpd, how can you suppress "." and ".." from being listed?

Consider ...

curl --insecure --user 'name:pass' sftp://host/some/path/

At a minimum, this will return . and .. - I never want to see these.

I set hide_file={.,..} in vsftpd's configuration file but this has no effect.

dave_thompson_085 avatar
jp flag
`vsftpd` is a server for FTP and/or FTP{I,E}S, not SFTP. On a system with OpenSSH, SFTP is handled either by the SSH server `sshd` internally, or by the `sftp-server` program, neither of which appears to have a feature to do what you want. If your SSH server is other than OpenSSH, look into that.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.