This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix
#8453
by making openssh listen on SSH_LISTEN_PORT not SSH_PORT (
#8477
)
tags/v1.11.0-dev
zeripath
Lunny Xiao
6 years ago
parent
979f3da3ca
commit
53519c0f61
2 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
docker/root/etc/s6/openssh/setup
+2
-2
docker/root/etc/templates/sshd_config
+ 1
- 0
docker/root/etc/s6/openssh/setup
View File
@@ -26,6 +26,7 @@ fi
if [ -d /etc/ssh ]; then
SSH_PORT=${SSH_PORT:-"22"} \
SSH_LISTEN_PORT=${SSH_LISTEN_PORT:-"${SSH_PORT}"} \
envsubst < /etc/templates/sshd_config > /etc/ssh/sshd_config
chmod 0644 /etc/ssh/sshd_config
+ 2
- 2
docker/root/etc/templates/sshd_config
View File
@@ -1,4 +1,4 @@
Port ${SSH_PORT}
Port ${SSH_
LISTEN_
PORT}
Protocol 2
AddressFamily any
@@ -30,4 +30,4 @@ AllowUsers ${USER}
Banner none
Subsystem sftp /usr/lib/ssh/sftp-server
AcceptEnv GIT_PROTOCOL
AcceptEnv GIT_PROTOCOL
Write
Preview
Loading…
Cancel
Save