freenx-team team mailing list archive
-
freenx-team team
-
Mailing list archive
-
Message #00258
freenx-server installation and sshd port
I have installed freenx-server and since I do not have sshd on the default I
have to manually change the port for freenx, so I created a script to do it
automatically. You could use it in the default installation of
freenx-server:
SSHD_PORT=$(grep Port /etc/ssh/sshd_config | grep -v "^#" | awk '{ print $2
;}')
if [ -n "$SSHD_PORT" ]; then
exists=$(grep "^SSHD_PORT=$SSHD_PORT" /etc/nxserver/node.conf )
if [ ! -n "$exists" ]; then
echo SSHD_PORT=$SSHD_PORT >> /etc/nxserver/node.conf
fi
fi
Follow ups