File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ type SSHConfigGlobal struct {
2121 LDAP_Server string `yaml:"ldap_server"`
2222 LDAP_Domain string `yaml:"ldap_domain"`
2323 PassPassword bool `yaml:"pass_password"`
24+ ListenPath string `yaml:"listen_path"`
2425}
2526
2627type SSHConfigServer struct {
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ global:
1414 ldap_domain : " ad.domain.local"
1515 # # Pass through LDAP password to host we are jumping to for auth?
1616 pass_password : true
17+ # # Listen path for setting up the TCP listener.
18+ # # We don't support droping priviledges, so should be greater than 1024,
19+ # # so the service can be run as a non-root user.
20+ # # You can use iptables NATing to redirect users from port 22.
21+ listen_path : " 0.0.0.0:2222"
1722servers :
1823 # # An array of servers that clients can jump to.
1924 vdev1.ad.domain.local :
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func main() {
4242 panic (err )
4343 }
4444
45- s .ListenAndServe (":2222" )
45+ s .ListenAndServe (config . Global . ListenPath )
4646}
4747
4848func GetMOTD () (string ) {
You can’t perform that action at this time.
0 commit comments