Skip to content

Commit 8fa6bfb

Browse files
committedAug 26, 2024·
Added user- prefix to sshd_config.d files
1 parent 61ccae6 commit 8fa6bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎example/remote/helpers/portfwd-user.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fi
4040

4141
echo "Creating sshd config file $user.conf"
4242

43-
cat << EOF > "/etc/ssh/sshd_config.d/$user.conf"
43+
cat << EOF > "/etc/ssh/sshd_config.d/user-$user.conf"
4444
Match User $user
4545
AllowAgentForwarding no
4646
AllowTcpForwarding $allow_tcp_forwarding

0 commit comments

Comments
 (0)
Please sign in to comment.