Skip to content

Commit

Permalink
Run jupyterhub-sftp on port 2222
Browse files Browse the repository at this point in the history
sshd still needs to run as root, but hey we can drop
as many things as we can!

Ref #16
  • Loading branch information
yuvipanda committed Oct 27, 2020
1 parent 089a85f commit c1e03ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm-chart/jupyterhub-ssh/templates/sftp/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
mountPath: /mnt/home
ports:
- name: sftp
containerPort: 22
containerPort: 2222
protocol: TCP
resources:
{{ toYaml .Values.sftp.resources | indent 12 }}
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/jupyterhub-ssh/templates/sftp/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
type: {{ .Values.sftp.service.type }}
ports:
- port: {{ .Values.sftp.service.port }}
targetPort: 22
targetPort: 2222
protocol: TCP
name: sftp
{{ if eq .Values.sftp.service.type "NodePort" }}
Expand Down
2 changes: 1 addition & 1 deletion jupyterhub-sftp/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

Include /etc/ssh/sshd_config.d/*.conf

#Port 22
Port 2222
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
Expand Down

0 comments on commit c1e03ed

Please sign in to comment.