### Install Rospo with Homebrew Source: https://github.com/ferama/rospo/blob/main/README.md Installs the Rospo tool on macOS using the Homebrew package manager. This is a convenient way to get started with Rospo on Apple systems. ```bash brew install rospo ``` -------------------------------- ### Run Rospo with Configuration File Source: https://github.com/ferama/rospo/blob/main/README.md Executes Rospo using a YAML configuration file for more complex tunnel setups and options. This allows for persistent and advanced configurations. ```bash rospo run config.yaml ``` -------------------------------- ### Configure Rospo with YAML for Complex Tunnels Source: https://github.com/ferama/rospo/blob/main/README.md Example YAML configuration file for Rospo to set up multiple complex tunnels, including jump hosts and custom SSH client configurations for specific tunnels. ```yaml sshclient: server: myuser@remote_server_address identity: "~/.ssh/id_rsa" jump_hosts: - uri: anotheruser@jumphost_address identity: "~/.ssh/id_rsa" tunnel: - remote: ":8000" local: ":8000" forward: yes - remote: ":9999" local: ":9999" forward: yes - remote: ":5000" local: ":5000" forward: no # use custom sshclient for this tunnel sshclient: server: myuser@another_server identity: "~/another_identity" # starts a socks proxy ... socksproxy: listen_address: :1080 # ...using a dedicated client sshclient: server: localhost:9999 ``` -------------------------------- ### Start Rospo Windows Service Source: https://github.com/ferama/rospo/blob/main/README.md Starts the previously created Rospo Windows service. This command is executed in a PowerShell terminal with administrative privileges. ```powershell sc.exe start rospo ``` -------------------------------- ### Create Rospo Windows Service Source: https://github.com/ferama/rospo/blob/main/README.md Creates a Windows service named 'rospo' that starts automatically and runs the Rospo executable with a specified configuration file. This enables persistent tunneling. ```powershell sc.exe create rospo start= auto DisplayName= Rospo binpath= "C:\rospo.exe run C:\conf.yaml" ``` -------------------------------- ### Get Rospo Command Help Source: https://github.com/ferama/rospo/blob/main/README.md Retrieves detailed help information for specific Rospo subcommands, such as 'forward', 'reverse', or 'sshd'. This is essential for understanding the full range of options and configurations available. ```bash rospo tun forward --help rospo tun reverse --help rospo sshd --help ``` -------------------------------- ### Run Rospo Docker Container Source: https://github.com/ferama/rospo/blob/main/README.md Executes the Rospo tool within a Docker container. This is useful for environments where installing Rospo directly is not feasible or desired, providing a consistent execution environment. ```bash docker run ghcr.io/ferama/rospo --help ``` -------------------------------- ### Start Rospo Reverse Shell Source: https://github.com/ferama/rospo/blob/main/README.md Initiates a reverse shell connection using Rospo, establishing an embedded SSH server on the local machine and proxying it to a remote SSH server. This is useful for accessing machines behind firewalls. ```bash rospo revshell user@server:port ``` -------------------------------- ### Run Rospo with a Configuration File Source: https://github.com/ferama/rospo/blob/main/README.md Command to launch Rospo using a specified YAML configuration file. ```shell rospo run config.yaml ``` -------------------------------- ### Rospo Configuration for Windows Service Source: https://github.com/ferama/rospo/blob/main/README.md A sample YAML configuration file for Rospo, defining SSH client settings and tunnel configurations. This file is used when running Rospo as a Windows service to manage remote desktop access. ```yaml sshclient: server: your-rospo-or-sshd-server-uri:2222 identity: "c:\absolute_path_to_your\id_rsa" known_hosts: "C:\absolute_path_to_your\known_hosts" tunnel: - remote: :3389 local: :3389 # the windows remote desktop port forward: false ``` -------------------------------- ### Run Rospo Reverse Shell on Windows Source: https://github.com/ferama/rospo/blob/main/README.md Executes the Rospo reverse shell command on a Windows system. This is equivalent to the Linux/macOS version but uses the Windows executable name. ```powershell rospo.exe revshell remote_ssh_server ``` -------------------------------- ### Manage Rospo Service Status Source: https://github.com/ferama/rospo/blob/main/README.md Commands to query the status of the Rospo service and to stop and delete it. ```shell sc.exe query rospo ``` ```shell sc.exe stop rospo; sc.exe delete rospo ``` -------------------------------- ### Forward Local Port with Rospo Source: https://github.com/ferama/rospo/blob/main/README.md Configures Rospo to forward a local port to a remote port on a specified server. This allows external access to services running on the local machine through the SSH tunnel. ```bash rospo tun forward -l :5000 -r :6000 user@server:port ``` -------------------------------- ### Connect to Rospo Reverse Shell Source: https://github.com/ferama/rospo/blob/main/README.md Connects to a Rospo reverse shell using a standard SSH client. This command assumes the Rospo reverse shell is listening on port 2222 locally. ```bash ssh -p 2222 localhost ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.