/usr/share/secpanel/secpanel_remoteconf.sh is in secpanel 1:0.6.1-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | #!/bin/bash
##########################################################################
# SecPanel.remoteconf - Client for Remote Account Manager
# Shellscript for fetching and setting remote ssh access configuration
#
# Version SecPanel 0.6.0
# Author: Steffen Leich <steffen.leich _at_ gmail.com>
##########################################################################
function do_exit {
echo
echo -e "Remote account management: transfer finished ($MODE)\n\nPress <Return> to continue"
read
exit
}
if [ -z $5 ]
then
cat <<EOF
SecPanel
Shellscript for fetching and setting remote ssh access configuration
Usage: secpanel_remoteconf.sh <host> <port> <user> <scpbin> <mode> <Runfile Timestamp>
EOF
exit 2
fi
HOST=$1
PORT=$2
USER=$3
SCPBIN=$4
MODE=$5
RFTS=$6
cat <<EOF
SecPanel - Client for Remote Account Manager
------------------------------------------------------
Connecting to $HOST as $USER
EOF
RF="$HOME/.secpanel/.runfiles/ram.$RFTS"
mkdir $RF 2> /dev/null
if [ $MODE = "read" ]
then
$SCPBIN -P $PORT $USER@$HOST:.shosts $USER@$HOST:.ssh/authorized_keys $RF
chmod 600 $RF/authorized_keys $RF/.shosts 2>/dev/null
elif [ $MODE = "write" ]
then
$SCPBIN -P $PORT $RF/.shosts $USER@$HOST:
$SCPBIN -P $PORT $RF/authorized_keys $USER@$HOST:.ssh
else
echo "nothing to do..."
fi
do_exit
|