$ su - dyndns -s /bin/bash
$ touch ~/.hushlogin
+ Alternatively, you may commend out the "motd" lines in ``/etc/pam.d/sshd``
5. Configure ssh-dyndns as root::
$ cp /usr/local/src/ssh-dyndns/ssh-dyndns.sh.config-dist /etc/ssh-dyndns.sh
#!/bin/sh
-#dyndns via ssh login + djbdns/dbndns
+# dyndns via ssh login + tinydns (djbdns/dbndns)
#
-#usage:
+# usage:
#
-#user setup:
-# $ useradd -g nogroup -m -N -s /usr/local/bin/ssh-dyndns dyndns
-# .. add ssh key to user
-#do not show login messages:
-# $ su - dyndns -s /bin/bash
-# $ touch ~/.hushlogin
-# alternatively, comment out the motd lines in /etc/pam.d/sshd
-#
if [ -z "$SSH_CONNECTION" ]; then
echo "no ssh connection"
domain="$2"
#load config files
-if [ -x ~/.config/ssh-dyndns.sh ]; then
+if [ -f ~/.config/ssh-dyndns.sh ]; then
. ~/.config/ssh-dyndns.sh
fi
-if [ -x /etc/ssh-dyndns.sh ]; then
+if [ -f /etc/ssh-dyndns.sh ]; then
. /etc/ssh-dyndns.sh
fi
#!/bin/sh
-#ssh-dyndns configuration file.
-#possible locations:
-# /etc/ssh-dyndns.sh
-# ~/.config/ssh-dyndns.sh
+# ssh-dyndns configuration file.
+# possible locations:
+# - /etc/ssh-dyndns.sh
+# - ~/.config/ssh-dyndns.sh
data_dir=/tmp/
file_pattern=data-dyndns-%DOMAIN%