import { FormControl, FormDescription, FormField, FormItem, FormLabel, } from "@/components/ui/form.tsx"; import { Input } from "@/components/ui/input.tsx"; import { Switch } from "@/components/ui/switch.tsx"; import { Alert, AlertDescription } from "@/components/ui/alert.tsx"; import { Button } from "@/components/ui/button.tsx"; import type { HostTunnelTabProps } from "./shared/tab-types"; export function HostTunnelTab({ form, sshConfigDropdownOpen, setSshConfigDropdownOpen, sshConfigInputRefs, sshConfigDropdownRefs, getFilteredSshConfigs, handleSshConfigClick, t, }: HostTunnelTabProps) { return (
sudo apt install sshpass
{" "}
{t("hosts.debianUbuntuEquivalent")}
sudo yum install sshpass
{" "}
{t("hosts.or")}{" "}
sudo dnf install sshpass
brew install hudochenkov/sshpass/sshpass
GatewayPorts yes
{" "}
{t("hosts.gatewayPortsYes")}
AllowTcpForwarding yes
{" "}
{t("hosts.allowTcpForwardingYes")}
PermitRootLogin yes
{" "}
{t("hosts.permitRootLoginYes")}
{t("hosts.tunnelForwardDescription", { sourcePort: form.watch( `tunnelConnections.${index}.sourcePort`, ) || "22", endpointPort: form.watch( `tunnelConnections.${index}.endpointPort`, ) || "224", })}