2019-07-18 21:29:16 +00:00
|
|
|
//+build windows
|
|
|
|
|
|
|
|
package sshserver
|
|
|
|
|
|
|
|
import (
|
2019-08-22 16:36:21 +00:00
|
|
|
"errors"
|
|
|
|
|
2019-08-28 15:48:30 +00:00
|
|
|
"time"
|
2019-08-26 20:25:24 +00:00
|
|
|
|
2020-04-29 20:51:32 +00:00
|
|
|
"github.com/cloudflare/cloudflared/logger"
|
2019-08-26 20:25:24 +00:00
|
|
|
"github.com/cloudflare/cloudflared/sshlog"
|
2019-07-18 21:29:16 +00:00
|
|
|
)
|
|
|
|
|
2019-10-17 16:51:45 +00:00
|
|
|
const SSHPreambleLength = 2
|
|
|
|
|
2019-07-18 21:29:16 +00:00
|
|
|
type SSHServer struct{}
|
|
|
|
|
2019-10-09 21:56:47 +00:00
|
|
|
type SSHPreamble struct {
|
|
|
|
Destination string
|
|
|
|
JWT string
|
|
|
|
}
|
|
|
|
|
2020-04-29 20:51:32 +00:00
|
|
|
func New(_ sshlog.Manager, _ logger.Service, _, _, _, _ string, _ chan struct{}, _, _ time.Duration) (*SSHServer, error) {
|
2019-08-22 16:36:21 +00:00
|
|
|
return nil, errors.New("cloudflared ssh server is not supported on windows")
|
2019-07-18 21:29:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *SSHServer) Start() error {
|
2019-08-22 16:36:21 +00:00
|
|
|
return errors.New("cloudflared ssh server is not supported on windows")
|
2019-07-18 21:29:16 +00:00
|
|
|
}
|