[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ltsp-discuss
Subject:    [Ltsp-discuss] SSH to client on LTSP5 Wheezy
From:       russell () lls ! lls ! com (Russell Brown)
Date:       2014-08-01 11:01:49
Message-ID: m1XDAar-02BR7da () lls ! lls ! com
[Download RAW message or body]


I'm tearing, what's left, of my hair out trying to ssh onto a
LTSP5/Debian Wheezy client.  Can anyone help?

I'm running a Wheezy server and the ltsp-server package is 5.4.2-6.

I've got the client booting (PXE) and working (using NFS root) but need
to be able to ssh onto it to check X setups, see what's on the USB bus,
send tests to the parallel port etc etc.  All the normal stuff.

If I try to ssh onto the client from the server, I get

>"Read from socket failed: Connection reset by peer".  

Port 22 is open on the client and sshd is running.

Using a shell session on the client and trying 'ssh -l root localhost' I
get:

>Could not create directory: '/root/.ssh'.
>Read from socket failed: Connection reset by peer.

/root is a directory but I can't access it, getting 'Permission Denied'
(even though I'm UID 0 on the client).

There also seems to be issues with sshd accessing
/etc/ssh/ssh_host_rsa_key and friends on the client with entries in
/var/log saying permission denied.

I've Googled and tried teaking lts.conf adding:

>RCFILE_01="ssh-keygen -A"
>LTSP_RW_DIRS_EXTRA      = /root /etc/ssh
>LTSP_COPY_DIRS_EXTRA    = /root /etc/ssh

but that makes no difference.

Searching through the client chroot (/opt/ltsp5) I find that the only
file that references LTSP_COPY_DIRS_EXTRA and friends is
"/opt/ltsp5/i386/usr/share/ltsp/ltsp-bindmounts" however, nothing
seems to call that script:

>#find /opt/ltsp5 -type f -exec grep -q ltsp-bindmounts {} \; -print
>/opt/ltsp5/i386/var/lib/dpkg/info/ltsp-client-core.md5sums
>/opt/ltsp5/i386/var/lib/dpkg/info/ltsp-client-core.list
>#

In desperation I installed telnetd on the client chroot but that fails
as it can't read /etc/shadow.  Using a shell session as root on the
client I can't read /etc/shadow either getting Permission denied.

Ummmm....  any suggestions or pointers?

TIA

-- 
 Regards,
     Russell
 --------------------------------------------------------------------
| Russell Brown          | MAIL: russell@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems     | WWW Work: http://www.lls.com              |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk         |
 --------------------------------------------------------------------

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_____________________________________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic