diff --git a/lib/main.dart b/lib/main.dart index 3d109cd..0755d93 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -77,18 +77,10 @@ class _MyHomePageState extends State { 22, timeout: const Duration(seconds: 0, milliseconds: 500), ); - } on SocketException { - setState(() { - _output = "SocketException: Could not connect to the server."; - }); - return; - } - try { final client = SSHClient( socket, username: 'test', - //onPasswordRequest: () => '123456', identities: List.of(keyPair != null ? [keyPair!] : []), );