Is there a way to do a remote “ls” much like “scp” does a remote copy?

You could always do this:

ssh user@host ls -l /some/directory

That will SSH to the host, run ls, dump the output back to you and immediately disconnect.

Leave a Comment