I am connecting to a sftp location and trying to list the contents from a directory inside the sftp to the local text file. Below is the code i am using :
sftp $HOST<