ssh_sudo_sftp_list

List and parse sudo-protected remote directories into structured data.

6|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-sudo-sftp-list
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ssh_sudo_sftp_list
Source: https://github.com/Nightreaver/python-ssh-mcp/tree/main/skills/ssh-sudo-sftp-list
Command: npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-sudo-sftp-list

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need for securely listing directories on a remote host that require sudo privileges, parsing the output into a structured format for easy use.

Core Features & Use Cases

  • Sudo Elevated Directory Listing: Lists directories requiring sudo privileges.
  • Parsing into SftpListResult: Outputs directory entries in a structured format for easy integration.
  • Use Case: For instance, you might use this Skill to list the contents of /root or /etc/ssl/private directories on a remote server, ensuring the SSH user has the necessary permissions.

Quick Start

List the contents of the /root directory on the 'prod-db' host.

Frequently Asked Questions about ssh_sudo_sftp_list

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I list directories requiring sudo privileges over an SSH connection?

You can list sudo-required directories over SSH by executing elevated directory listing commands on the remote host. This Skill securely parses the contents of root-owned directories like /root or /etc/ssl/private into structured data for integration.

Can I use SFTP to list files in root-owned directories on a remote host?

Yes, you can list files in root-owned directories on a remote host using sudo elevated directory listing techniques. This approach securely retrieves and parses directory contents into a structured SftpListResult format, provided the SSH user has the necessary permissions.

What is the best way to get a structured directory listing for remote sudo directories?

The best way to get a structured directory listing for remote sudo directories is to use a tool that securely executes the listing and parses the output. This Skill formats elevated directory entries into a structured SftpListResult, making it easy to integrate with other tools.

Do I need sudo access to list remote directories with SFTP?

Yes, you need sudo access to list remote directories with SFTP if the target directories are root-owned or require elevated permissions. The SSH user must have the necessary permissions configured on the POSIX-based remote host to successfully retrieve the directory listing.

Does sudo directory listing work with non-POSIX systems?

Sudo directory listing is suitable for POSIX-based systems and may not work properly with non-POSIX systems. The Skill relies on standard POSIX commands and permissions structures to securely list and parse the contents of directories requiring elevated privileges.