Errore al login su Nas Buffalo

nas
amule_adunanza

#1

Salve.

Ho seguito la guida ma mi trovo bloccato nel punto dove devo loggarmi via ssh come utente amule, inserisco la password correttamente ma ho il seguente errore e non riesco ad andare avanti, potete darmi una mano?


Guida: Amule Adunanza sui NAS Buffalo
#2

Hai creato correttamente l’utente amule? E’ abilitato ad accedere via ssh?


#3

Ho seguito passo passo la guida in sezione, come utente root riesco ad accedere senza problemi, mentre come utente amule va in errore. C’è un modo per verificare i permessi dell’utente amule?


#4

posta questo tra i tag code:
cat /etc/melco/info


#5

wg=WORKGROUP
domain=off
my_ipaddress=dhcp
my_subnetmask=
my_ipaddress2=dhcp
my_subnetmask2=
my_dgw=
pdc=
auth_server=
auth_dc_server=off
auth_user_auto_add=off
auth_test=off
auth_test_folder=
wins=
string=LinkStation
timezone=Amsterdam
codepage=CP932
lang=italian
ntp=on
ntpserver=ntp.jst.mfeed.ad.jp
ntp_old=
ntp_interval=1d
atalk=off
ftp=off
anonyftp=off
anonyftp_folder=
anonyftp_mode=write
printer_win=off
printer_mac=off
upnp=off
search_passwd=
init_passwd=on
raidfail_shutdown=on
pcast=on
syslog_forward=off
syslog_forward_target=
syslog_forward_item=
mtu=1518
pwrmgr=on
bonjour=on
hostname=LS-CHL107
ol_notify=off
sshdauth=off


#6

ok hai una versione diversa del nas, ma forse il file di configurazione di ssh si trova nella stessa posizione… dovrebbe essere in /etc/init.d

postami l’output di
cat /etc/init.d/ssh.sh
e
cat /etc/init.d/sshd.sh

mettili nei tag

 <code>  </code>

#7

ssh

cat /etc/init.d/ssh.sh
cat: can’t open ‘/etc/init.d/ssh.sh’: No such file or directory

sshd

cat /etc/init.d/sshd.sh
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin/:/usr/local/sbin/

SSHD_DSA=/etc/ssh_host_dsa_key
SSHD_RSA=/etc/ssh_host_rsa_key
SSHD_KEY=/etc/ssh_host_key

SSHD=/usr/local/sbin/sshd
if [ ! -x ${SSHD} ] ; then
echo "sshd is not supported on this platform!!!"
fi

[ -f /etc/nas_feature ] && . /etc/nas_feature
[ -f /etc/melco/info ] && . /etc/melco/info

if [ “${SUPPORT_SFTP}” = “0” ] ; then
echo “Not support sftp on this model.” > /dev/console
exit 0
fi

umask 000

if PermitUserEnvironment is yes on /etc/sshd_config, please see /home/.ssh/environment

if [ -f /usr/local/lib/libfseventmon.so ] ; then
LDPRELOAD_SHARED_LIB=/usr/local/lib/libfseventmon.so
else
LDPRELOAD_SHARED_LIB=/usr/local/lib/libondemandsync.so
fi

sshd_keygen()
{
if [ ! -f ${SSHD_KEY} ] ; then
echo "1st time bootup?"
echo "key file(${SSHD_KEY}) is not exist!!!"
echo "Create key file, please wait for a while"
echo y|ssh-keygen -t dsa -f ${SSHD_KEY} -N ""
if [ $? -ne 0 ] ; then
echo "file(${SSHD_KEY}) is created successfully."
else
echo "file(${SSHD_KEY}) is created failed!"
fi
fi
if [ ! -f ${SSHD_DSA} ] ; then
echo "1st time bootup?"
echo "key file(${SSHD_DSA}) is not exist!!!"
echo "Create key file, please wait for a while"
echo y|ssh-keygen -t dsa -f ${SSHD_DSA} -N ""
if [ $? -ne 0 ] ; then
echo "file(${SSHD_DSA}) is created successfully."
else
echo "file(${SSHD_DSA}) is created failed!"
fi
fi
if [ ! -f ${SSHD_RSA} ] ; then
echo "1st time bootup?"
echo "key file(${SSHD_RSA}) is not exist!!!"
echo "Create key file, please wait for a while"
echo y|ssh-keygen -t rsa -f ${SSHD_RSA} -N ""
if [ $? -ne 0 ] ; then
echo "file(${SSHD_RSA}) is created successfully."
else
echo "file(${SSHD_RSA}) is created failed!"
fi

    fi

}

sshd_start()
{
if [ ${sftp:-on} = off ]; then
return
fi
sshdauth="sed -n '/^sshdauth=/ s/sshdauth=//p' /etc/melco/info"

    if [ "x$sshdauth" == "xon" ]; then
            ${SSHD} -f /etc/sshd_config_2222
    fi

    sshd_keygen
    nas_configgen -c sftp
    if [ "${SUPPORT_REPLICATION}" = "1" ] ; then
            local is_rep_task=1
            if [ -f /usr/local/lib/libreplication ] ; then
                    . /usr/local/lib/libreplication
                    IsReplicationTask
                    is_rep_task=$?
            fi
            if [ ${is_rep_task} -eq 0 ] ; then
                    if [ -f /usr/local/lib/libfseventmon.so ] ; then
                            perl -wpl -e "s%^PermitUserEnvironment%#PermitUserEnvironment%;" -i /etc/sshd_config
                    fi
                    ${SSHD}
            else
                    if [ -f /usr/local/lib/libfseventmon.so ] ; then
                            perl -wpl -e "s%^#PermitUserEnvironment%PermitUserEnvironment%;" -i /etc/sshd_config
                    fi
                    LD_PRELOAD=${LDPRELOAD_SHARED_LIB} ${SSHD}
            fi
    else
            ${SSHD}
    fi

}

sshd_stop()
{
killall sshd
}

case $1 in
start)
sshd_start
;;
stop)
sshd_stop
;;
restart)
sshd_stop
sleep 1
sshd_start
;;
*)
echo “Unknown argument”
;;
esac

exit 0


#8

@murra:

i tag sono stati usati correttamente?


#9

no i tag dovrebbero contenere tutto il codice. Comunque non vedo niente di strano… prova a postare invece
cat /etc/sshd_config
e
cat /etc/ssh_config