Skip to content

Commit

Permalink
Merge branch 'release/0.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed Jun 27, 2022
2 parents f8207b5 + dbea74d commit 3f66c77
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 771 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on: [push, pull_request]

jobs:
build_multi_platform:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.18
- name: Build for multi-platform
run: |
set -xeu
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:

jobs:
goreleaser:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.18
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
24 changes: 16 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]

## [0.8.0] - 2022-06-27
### Added
* Remote port forwarding

### Changed
* Update dependencies

## [0.7.0] - 2022-01-28
### Added
* Support Windows partially (Port-forwarding and SFTP supported, pty not supported)
Expand Down Expand Up @@ -49,11 +56,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
### Added
* Initial release

[Unreleased]: https://github.com/nwtgck/go-piping-sshd/compare/v0.7.0...HEAD
[0.7.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.6.0...0.7.0
[0.6.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.5.0...0.6.0
[0.5.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.4.0...0.5.0
[0.4.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.3.1...0.4.0
[0.3.1]: https://github.com/nwtgck/go-piping-sshd/compare/v0.3.0...0.3.1
[0.3.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.2.0...0.3.0
[0.2.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.1.0...0.2.0
[Unreleased]: https://github.com/nwtgck/go-piping-sshd/compare/v0.8.0...HEAD
[0.8.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.7.0...v0.8.0
[0.7.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.5.0...v0.6.0
[0.5.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.3.1...v0.4.0
[0.3.1]: https://github.com/nwtgck/go-piping-sshd/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/nwtgck/go-piping-sshd/compare/v0.1.0...v0.2.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ brew install nwtgck/piping-sshd/piping-sshd

## Install for Ubuntu
```bash
wget https://github.com/nwtgck/go-piping-sshd/releases/download/v0.6.0/piping-sshd-0.6.0-linux-amd64.deb
dpkg -i piping-sshd-0.6.0-linux-amd64.deb
wget https://github.com/nwtgck/go-piping-sshd/releases/download/v0.7.0/piping-sshd-0.7.0-linux-amd64.deb
dpkg -i piping-sshd-0.7.0-linux-amd64.deb
```

Get more executables in the [releases](https://github.com/nwtgck/go-piping-sshd/releases).
Expand Down
6 changes: 2 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ var RootCmd = &cobra.Command{
}

log.Printf("New SSH connection from (%s)", sshConn.ClientVersion())
// Discard all global out-of-band Requests
go ssh.DiscardRequests(reqs)
go ssh_server.HandleGlobalRequests(sshConn, reqs)
// Accept all channels
ssh_server.HandleChannels(sshShell, chans)
}
Expand Down Expand Up @@ -214,8 +213,7 @@ func sshHandleWithYamux(sshConfig *ssh.ServerConfig, httpClient *http.Client, he
return
}
log.Printf("New SSH connection from %s (%s)", sshConn.RemoteAddr(), sshConn.ClientVersion())
// Discard all global out-of-band Requests
go ssh.DiscardRequests(reqs)
go ssh_server.HandleGlobalRequests(sshConn, reqs)
// Accept all channels
ssh_server.HandleChannels(sshShell, chans)
}()
Expand Down
13 changes: 8 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ module github.com/nwtgck/go-piping-sshd
go 1.16

require (
github.com/creack/pty v1.1.17
github.com/hashicorp/yamux v0.0.0-20200609203250-aecfd211c9ce
github.com/creack/pty v1.1.18
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87
github.com/mattn/go-shellwords v1.0.12
github.com/pkg/errors v0.9.1
github.com/pkg/sftp v1.13.4
github.com/spf13/cobra v1.3.0
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
github.com/pkg/sftp v1.13.5
github.com/spf13/cobra v1.5.0
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Loading

0 comments on commit 3f66c77

Please sign in to comment.