mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Add skip SSH host key verification and fix self-hosted server support (#121)
* Add SSH host key verification with automatic trust and SCP-style URL support * Fix TypeScript errors for SSH host key schema and test mocks
This commit is contained in:
1 parent
677ce748cd
commit
7341dce1ef
25 files changed
+203
-123
No files matched your search
@@ -12,9 +12,11 @@ import { Alert, AlertDescription } from '@/components/ui/alert'
|
||||
import { CopyButton } from '@/components/ui/copy-button'
|
||||
import { Shield, ShieldAlert } from 'lucide-react'
|
||||
import { cn } from '@/lib/utils'
|
||||
import type { SSHHostKeyRequest, SSHHostKeyResponse } from '@/api/types'
|
||||
import type { SSHHostKeyRequest } from '@/api/types'
|
||||
import { showToast } from '@/lib/toast'
|
||||
|
||||
type SSHHostKeyResponse = 'accept' | 'reject'
|
||||
|
||||
interface SSHHostKeyDialogProps {
|
||||
request: SSHHostKeyRequest | null
|
||||
onRespond: (requestId: string, response: SSHHostKeyResponse) => Promise<void>
|
||||
@@ -100,7 +102,7 @@ export function SSHHostKeyDialog({
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
<div className="space-y-3">
|
||||
<div className="space-y-4">
|
||||
{request.isKeyChanged && (
|
||||
<Alert variant="destructive">
|
||||
<AlertDescription className="text-sm">
|
||||
|
||||
Reference in new issue
Block a user