forked from TerminalStudio/dartssh2
-
Notifications
You must be signed in to change notification settings - Fork 2
Merge upstream v2.14.0 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
88e36fc
Add parameter disableHostkeyVerification
alexander-irion e32b132
Catch exceptions when sshd terminated
alexander-irion b0fdd01
Implemented support for server rekey (by default every 1 GB or 1 hour)
86805cb
According to RFC, we shouldn't send anything except KEX stuff when do…
dcce7af
Improved function to allow critical ssh messages through as well
bead8a8
Add support for new MAC mac-sha2-256-96", "hmac-sha2-512-96", "hmac-s…
reinbeumer 81c6905
Corrected the ETM encryptions
reinbeumer c55e269
Corrected the ETM encryptions
reinbeumer cd3bc77
Format code
xtyxtyx 40948ea
Merge pull request #123 from alexander-irion/master
xtyxtyx e29ba65
Merge pull request #125 from MarBazuz/feat/rekey
xtyxtyx 364856d
Add more tests
xtyxtyx 81cf1c5
Format code
xtyxtyx d9cd523
Merge branch 'master' into pr/reinbeumer/127
xtyxtyx 25429ab
Format code
xtyxtyx 3056782
Merge pull request #127 from reinbeumer/feature/algorithm-corrections
xtyxtyx dc8607b
Update example
xtyxtyx c7d6321
Add .vscode to .gitignore
xtyxtyx df127d7
Bump version
xtyxtyx 1d9613c
Removed Dependabot on package
vicajilau 5cba8d7
Added publish flow
vicajilau 1312766
Renamed file
vicajilau a4ad5c7
Merge pull request #130 from TerminalStudio/feature/CI-CD-improvements
vicajilau 3aa45a5
Add NaviTerm screenshot to README
jc-hk-1916 f9d3a1d
add NaviTerm title and repository link
jc-hk-1916 2bf1ef2
Update App Store link for NaviTerm
jc-hk-1916 416d74e
add NaviTerm to showcase and refine table structure
jc-hk-1916 b2e1264
Update image alt text for clarity
jc-hk-1916 4499ab6
Introducing domain sockets as forwarding connect destination
isegal 81e88d7
Add example of forwarding to a remote unix domain socket
isegal 963e9f9
Fix potential hang when closing channel while opening
isegal e7a38ee
register channel
17ba902
Merge pull request #141 from shihuili1218/master
vicajilau 7b1a439
Bump version to 2.14.0 and update CHANGELOG for SSH connection fix
vicajilau bcdafd0
Merge pull request #140 from few-sh/domain-sockets
vicajilau 78cf43a
Update GitHub Actions workflow to include pull request triggers and m…
vicajilau e4bb2d8
Merge pull request #138 from jc-hk-1916/master
vicajilau 6ae02d4
Add forwardLocalUnix() function to CHANGELOG for SSH forwarding
vicajilau 21c0c67
Merge v2.14.0 into merge-v2.14.0 branch
GT-610 27a6480
feat(forward): Adds local Unix domain socket forwarding functionality
GT-610 79059a3
docs (CHANGELOG): Added missing PR links #116 and #115
GT-610 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| import 'dart:io'; | ||
|
|
||
| import 'package:dartssh2/dartssh2.dart'; | ||
|
|
||
| /// Example of forwarding a local TCP port to a remote Unix domain socket using `ssh -L localPort:remoteSocketPath`. | ||
| void main(List<String> args) async { | ||
| final socket = await SSHSocket.connect('localhost', 22); | ||
|
|
||
| final client = SSHClient( | ||
| socket, | ||
| username: 'root', | ||
| onPasswordRequest: () { | ||
| stdout.write('Password: '); | ||
| stdin.echoMode = false; | ||
| String? password; | ||
| try { | ||
| password = stdin.readLineSync(); | ||
| } finally { | ||
| stdin.echoMode = true; | ||
| } | ||
| if (password == null) exit(1); | ||
| return password; | ||
| }, | ||
| ); | ||
|
|
||
| await client.authenticated; | ||
|
|
||
| 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.forwardLocalUnix('/var/run/docker.sock'); | ||
devin-ai-integration[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| forward.stream.cast<List<int>>().pipe(socket); | ||
| socket.cast<List<int>>().pipe(forward.sink); | ||
| } | ||
GT-610 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| client.close(); | ||
| await client.done; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.