go.crypto/ssh: add support for remote tcpip forwarding

Add support for server (remote) forwarded tcpip channels.
See RFC4254 Section 7.1

R=gustav.paul, jeff, agl, lieqiewang
CC=golang-dev
https://golang.org/cl/6038047
This commit is contained in:
Dave Cheney
2012-04-26 20:37:06 +10:00
parent bcdd6a2fd3
commit b333fd1d05
5 changed files with 270 additions and 26 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ func (c *channel) Reject(reason RejectionReason, message string) error {
reject := channelOpenFailureMsg{
PeersId: c.theirId,
Reason: uint32(reason),
Reason: reason,
Message: message,
Language: "en",
}