Skip to content
Permalink
Browse files

Added admin features. Closes #58

  • Loading branch information
antoniomika committed Dec 23, 2019
1 parent 7939ecd commit 1ceea74541767d659a91f1dd3257502134e25195
Showing with 930 additions and 5 deletions.
  1. +1 −1 .goreleaser.yml
  2. +3 −1 .vscode/launch.json
  3. +4 −1 Dockerfile
  4. +1 −1 channels.go
  5. +522 −0 console.go
  6. +75 −1 http.go
  7. +18 −0 main.go
  8. +16 −0 requests.go
  9. +117 −0 templates/console.tmpl
  10. +5 −0 templates/footer.tmpl
  11. +55 −0 templates/header.tmpl
  12. +113 −0 templates/routes.tmpl
@@ -31,5 +31,5 @@ archives:
files:
- LICENSE*
- README*
- keys/
- pubkeys/
- templates/
@@ -23,7 +23,9 @@
"-sish.bindrandom=false",
"-sish.tcpalias=true",
"-sish.proxyprotoenabled=false",
"-sish.logtoclient=true"
"-sish.logtoclient=true",
"-sish.adminenabled=true",
"-sish.serviceconsoleenabled=true"
]
}
]
@@ -26,7 +26,10 @@ FROM scratch
LABEL maintainer="Antonio Mika <me@antoniomika.me>"

WORKDIR /app
COPY --from=builder /go/bin/sish /app/sish

COPY --from=builder /tmp /tmp
COPY --from=builder /app/pubkeys /app/pubkeys
COPY --from=builder /app/templates /app/templates
COPY --from=builder /go/bin/sish /app/sish

ENTRYPOINT ["/app/sish"]
@@ -122,7 +122,7 @@ func handleAlias(newChannel ssh.NewChannel, sshConn *SSHConnection, state *State
return
}

sshConn.Listeners.Store(conn.RemoteAddr(), nil)
sshConn.Listeners.Store(conn.RemoteAddr(), tcpAliasToConnect)

copyBoth(conn, connection)

0 comments on commit 1ceea74

Please sign in to comment.
You can’t perform that action at this time.