- Interactive TUI for SSH port forwarding - Reads from ~/.ssh/config for host selection - Automatic port detection on remote hosts - Manual port forwarding option - Graceful error handling and connection timeouts - Built with Bubble Tea framework Co-authored-by: Ona <no-reply@ona.com>
24 lines
841 B
Bash
Executable File
24 lines
841 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "kport - SSH Port Forwarder Demo"
|
|
echo "==============================="
|
|
echo ""
|
|
echo "This application requires a proper terminal to run the TUI interface."
|
|
echo ""
|
|
echo "In a real terminal, you would run:"
|
|
echo " ./kport"
|
|
echo ""
|
|
echo "Expected behavior when selecting hosts:"
|
|
echo "• test-server & dev-server: Will show 'Could not connect' (they're fake hosts)"
|
|
echo "• localhost-test: May work if SSH server is running locally"
|
|
echo ""
|
|
echo "The application will:"
|
|
echo "1. Read your SSH config from ~/.ssh/config"
|
|
echo "2. Show an interactive list of SSH hosts"
|
|
echo "3. Let you select a host with arrow keys"
|
|
echo "4. Show 'Connecting...' message"
|
|
echo "5. Either detect ports or show connection error"
|
|
echo "6. Allow manual port forwarding with 'm' key"
|
|
echo ""
|
|
echo "Testing SSH config parsing:"
|
|
./kport --test |