Skip to content

Commit 7c09dab

Browse files
committed
Adjust ssh config script - VC remote does need TCP forwarding on some machines
1 parent f597941 commit 7c09dab

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

extra-configure-ssh-server.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@ CONFIG=/etc/ssh/sshd_config
44

55
echo "# BEGIN CUSTOM CONFIG" >> $CONFIG
66

7-
echo AllowTcpForwarding no >> $CONFIG
7+
echo "# yes - for VC remote" >> $CONFIG
8+
echo AllowTcpForwarding yes >> $CONFIG
89

910
echo X11Forwarding no >> $CONFIG
1011

11-
# This actually uses root for $USER, which is not useful
12+
# This script run under sudo, so actually uses root for $USER, which is not useful
1213
echo "# TODO - AllowUsers $USER" >> $CONFIG
1314

15+
echo ! TODO - adjust AllowUsers in $CONFIG !
16+
1417
echo Banner /etc/issue.net >> $CONFIG
1518

1619
echo PubkeyAuthentication yes >> $CONFIG
1720
echo RSAAuthentication yes >> $CONFIG
1821

19-
cat $CONFIG
22+
# cat $CONFIG
2023

2124
cat config/login-banner.txt >> /etc/issue.net
2225

0 commit comments

Comments
 (0)