TerminalStudio / dartssh2

SSH and SFTP client written in pure Dart, aiming to be feature-rich as well as easy to use.
https://pub.dev/packages/dartssh2
MIT License
214 stars 58 forks source link

cannot build #112

Open WanderingTurtle opened 1 month ago

WanderingTurtle commented 1 month ago

% dart pub global activate dartssh2_cli Downloading packages... . (1.3s)

% dart info

If providing this information as part of reporting a bug, please review the information below to ensure it only contains things you're comfortable posting publicly.

General info

jhsware commented 6 days ago

Same error if one copies this example:

  final serverSocket = await ServerSocket.bind('localhost', 8080);

  print('Listening on ${serverSocket.address.address}:${serverSocket.port}');

  await for (final socket in serverSocket) {
    final forward = await client.forwardLocal('httpbin.org', 80);
    forward.stream.cast<List<int>>().pipe(socket);
    socket.cast<List<int>>().pipe(forward.sink);
  }