Update to handle explicit server and port, and to list files under
remote pwd.