Comments (7)
Hi ,
Is there any update on this issue ? i m also looking for the solution
from dartssh2.
same here Error: UnimplementedError: Native socket is not supported on web
from dartssh2.
Same here, problem it still exists on web 👎🏻
Does anyone know, is the problem exists on earlier versions?
final socket = await SSHSocket.connect('localhost', 22);
final client = SSHClient(
socket,
username: 'root',
onPasswordRequest: () => '1234567',
);
Error:
Uncaught (in promise) Error: UnimplementedError: Native socket is not supported on web
at Object.throw_ [as throw] (errors.dart:263:21)
at connectNativeSocket (ssh_socket_js.dart:8:3)
at connectNativeSocket.next (<anonymous>)
at runBody (async_patch.dart:84:54)
at Object._async [as async] (async_patch.dart:123:5)
at Object.connectNativeSocket (ssh_socket_js.dart:3:38)
at connect (ssh_socket.dart:13:18)
at connect.next (<anonymous>)
at runBody (async_patch.dart:84:54)
at Object._async [as async] (async_patch.dart:123:5)
at SSHSocket.connect (ssh_socket.dart:8:35)
at connect (main.dart:12:34)
at connect.next (<anonymous>)
at runBody (async_patch.dart:84:54)
at Object._async [as async] (async_patch.dart:123:5)
at Object.connect (main.dart:11:13)
at main$ (main.dart:8:3)
at main.dart.bootstrap.js:303:10
at Array.forEach (<anonymous>)
at window.$dartRunMain (main.dart.bootstrap.js:302:32)
at <anonymous>:1:8
at Object.runMain (client.js:8803:21)
at client.js:24896:19
at _wrapJsFunctionForAsync_closure.$protected (client.js:3448:15)
at _wrapJsFunctionForAsync_closure.call$2 (client.js:11507:12)
at Object._asyncStartSync (client.js:3412:20)
at main__closure4.$call$body$main__closure (client.js:24912:16)
at main__closure4.call$1 (client.js:24824:19)
at StaticClosure._rootRunUnary (client.js:3816:16)
at _CustomZone.runUnary$2$2 (client.js:12906:39)
at _CustomZone.runUnaryGuarded$1$2 (client.js:12853:14)
at _ControllerSubscription._sendData$1 (client.js:12446:19)
at _DelayedData.perform$1 (client.js:12629:59)
at _PendingEvents_schedule_closure.call$0 (client.js:12688:14)
at Object._microtaskLoop (client.js:3656:24)
at StaticClosure._startMicrotaskLoop (client.js:3662:11)
at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (client.js:11384:9)
at invokeClosure (client.js:1227:26)
at MutationObserver.<anonymous> (client.js:1246:18)
from dartssh2.
Same
Error: UnimplementedError: Native socket is not supported on web
from dartssh2.
Same here.
Like to use this for web.
from dartssh2.
Hello,
Sorry for the delay in my response. It's actually intended that SSHSocket
don't provide a default implementation on web platform as there is no standard method for connecting to sockets in browsers. Instead you can implement the SSHSocket
interface use whatever available in the browser such as bare WebSocket, socket.io, WebRTC data channels or WebExtension native messaging.
Please let me know if you have any further questions or concerns.
from dartssh2.
Fine to close, if it's intended behaviour
from dartssh2.
Related Issues (20)
- SSH local port forwarding is not working
- How does the method onChangePasswordRequest work?
- Generate SSH keys similar to ssh-keygen
- Proposed change in code for the "|" operator overload in SftpFileOpenMode
- sftp upload create a 0 byte file and holding HOT 1
- How can I add UDPGW port?
- SSHAuthAbortError(Connection closed before authentication) when using jumpServer HOT 3
- [Flutter] Keep waiting for the https api response in local port forwarding for large response data
- Shell without Streams
- bug: Unhandled Exception: SSHStateError(Transport is closed) HOT 2
- Slow SFTP on phone
- Web Problem HOT 2
- Web Failed to establish SSH connection: UnimplementedError: Native socket is not supported on web HOT 1
- Issue while Local Port Forwarding HOT 2
- stderr emit for client.run()
- SSHAuthFailError(All authentication methods failed) HOT 2
- FormatException: Unexpected extension byte" Error with Non-UTF-8 File Names
- Operation not permitted when running on macos HOT 1
- SSH Connection not working in release build (apk installed on phone), but working on simulated phone in android studio. HOT 1
- Does this project have an active maintainer?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dartssh2.