Jim,
I did run the script after I had to change a few lines to get it to work
in Centos:
CODE: LTSP-update-sshkeys:
#!/bin/sh
test -z "$clients" && clients=$(find /opt/ltsp/ -mindepth 1 -maxdepth 1
-type d 2>/dev/null)
hostname=$(hostname)
ips=$(ip -o addr show | awk '$3 == "inet" && $4 !~ /^127\./ { print $4
}' | sed -e 's,/[0-9][0-9]*\>,,g')
*output=$(mktemp)*
enc="dsa rsa"
names="$hostname $ips"
*logfile="/var/log/messages"*
if [ -z "$clients" ]; then
logger -f $logfile -t ltsp "No client chroots found, please run
ltsp-build-client"
exit 0
fi
for name in $names; do
for encryption in $enc; do
if [ -f /etc/ssh/ssh_host_${encryption}_key.pub ]; then
echo $(echo $name $(cat
/etc/ssh/ssh_host_${encryption}_key.pub|awk '{split ($0, a, " "); print
a[1]" "a[2]" "}')) >> $output
logger -f $logfile -t ltsp "# Creating
${encryption}-hostkey for $name"
else
logger -f $logfile -t ltsp "No ${encryption} key
found for ${name}, please configure your ssh server correctly"
fi
done
done
if [ -f /etc/ltsp/ssh_known_hosts.extra ]; then
cat /etc/ltsp/ssh_known_hosts.extra >> $output
fi
echo "Setting up ssh_known_hosts in: "
for client in $clients; do
echo " $client"
if [ -d $client/etc/ssh ]; then
install -m 644 $output $client/etc/ssh/ssh_known_hosts
else
echo "WARNING: $client/etc/ssh not found. skipping..."
fi
done
rm -f $output
exit 0
ENDCODE
I did run it again to no avail. I still get the Ubuntu Login screen and
I cannot login. Perhaps I am missing something in the script?
I looked in the /opt/ltsp/i386/etc/ssh/ssh_known_hosts and it does have
the 4 entries for my LTSP server.
I did notice in my /var/log/secure:
[...]
Apr 21 16:58:58 LTSP sshd[31647]: Accepted password for <my username>
from <my thinclient ip>
port 33169 ssh2
Apr 21 16:58:59 LTSP sshd[31647]: pam_unix(sshd:session): session opened
for use
r <my username> by (uid=0)
Apr 21 16:59:01 LTSP sshd[31647]: pam_unix(sshd:session): session closed
for use
r <my username>
Apr 21 16:59:01 LTSP sshd[31749]: Connection closed by <my thinclient ip>
Apr 21 16:59:01 LTSP sshd[31751]: Connection closed by <my thinclient ip>
Apr 21 16:59:02 LTSP sshd[31753]: Connection closed by <my thinclient ip>
Apr 21 16:59:02 LTSP sshd[31755]: Connection closed by <my thinclient ip>
Apr 21 16:59:02 LTSP sshd[31757]: Connection closed by <my thinclient ip>
Apr 21 16:59:02 LTSP sshd[31759]: Connection closed by <my thinclient ip>
it seems to be atleast accepting my user id, then something goes Fubar?
Shaun
Jim McQuillan wrote:
Shaun,
Did you run the ltsp-update-sshkeys script ?
You can get it on the ltsp download page. That will (should) copy the
public key from the server to the client tree. that must be done, or
you won't be able to log in.
Jim McQuillan
[EMAIL PROTECTED]
Shaun Burdick wrote:
Hello,
I am using LTSP 5 w/ Ubuntu 7 on a Centos 5 machine. I can boot great
but on the default installation (with the tweaks to get it to work) I
end up at a Ubuntu Login Screen and cannot login. When I type login for
the Centos 5 machine, both user and root, it does not work. Looking at
the /var/log/messages I see nothing but I do notice on the
/var/log/secure (ssh log) that every time I try to login ssh
disconnects. After hitting <Crtl>+<Alt>+F1 and logging in on a
terminal, I get the wrong username/password combination when trying to
login.
Funny thing is, if I setup LTSP to use XDMCP ( SCREEN_07 = startx ) I
get the Centos Welcome Screen and I can login fine. ( I do get an error
when the screen comes up saying it cannot find the RHEL theme but thats
another issue)
Any ideas? I have yet to see this marvelous LDM.
Shaun
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net