When running SFTP commands in the terminal or command line interface, the
-v
(verbose) flag can be added to provide more detailed output. This is especially useful when debugging connection or file transfer issues.Here is a simple example of an SFTP command with verbose mode:
sftp -v username@hostname
After running this command, you will be asked for the password. Upon entering the password, the SFTP prompt will appear and you can run your desired SFTP commands.The
-v
flag will cause SFTP to print debugging information about its progress, which is very useful in diagnosing problems.The verbose output will display the SFTP protocol interactions. If you use the
-v
flag twice (i.e.,
-vv
), the SSH protocol will also be debugged, displaying the workings of the SSH protocol. If you use it three times (i.e.,
-vvv
), the output will also include debugging information from the SSH transport layer.Here's an example of how you might use multiple
-v
flags:
sftp -vvv username@hostname
This will produce a very detailed diagnostic output, which can help you understand what's happening behind the scenes or identify any issues.