I pretty much have sshd running with this (taken from I think the bridge configuration of PICOBSD, read the comments in there) – I bring this here from the 4501 discussion group as it’s more appropriate.
progs sshd # includes ssh and scp
special sshd objvar SSHD_OBJS
special sshd srcdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27
special sshd objdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27
ln sshd ssh
ln sshd ssh1
ln sshd scp
However, I still have problems; sshd wants to chown the pty device’s ownership, but since /dev/ is mounted on a read only system, it can’t.
My kludge for the moment is to remount / as writeable (mount –u –w), but that’s not great for long term. Suggestions welcome.
I’m running it with FreeBSD 4.5. I had to find ssh-1.2.27.tar.gz on the net, download and install for it to work, I think it had some dependencies too, but I don’t remember.
The error I get:
Oct 30 19:28:28 thewall sshd: log: Password authentication for root accepted
Oct 30 19:28:28 thewall sshd: root from 192.168.1.10 (password authenticatio
Oct 30 19:28:28 teewall sshd: log: ROOT LOGIN as 'root' from 192.168.1.10
Oct 30 19:28:28 thewall sshd: debug: Allocating pty.
Oct 30 19:28:28 thewall sshd: debug: chown failed for /dev/ttyp0, error: Rea
d-only file system. Removing user-settable flags, and retrying.
Oct 30 19:28:28 thewall sshd: debug: Removing user-settable flags with chfla
Oct 30 19:28:28 thewall sshd: debug: chflags failed for /dev/ttyp0, error: R
ead-only file system
Oct 30 19:28:28 thewall sshd: error: ssh_pty_allocate_and_fork: chown failed
Oct 30 19:28:28 thewall sshd: debug: Forking shell.
Oct 30 19:28:28 thewall sshd: debug: Entering interactive session.
Then the client just gets the message Warning: Remote host failed or refused to allocate a pseudo tty., and sits there.
Other interesting things I did:
Running thttpd (statically, 340 K) and htpasswd (haven’t tried it yet, 100K), putting kvm back in and having real netstat, also grep and cut. And ‘led’, a small program to turn the 4501 led on or off, dynamically linked in (based on the program posted earlier to the 4501 list). Plus some proprietary stuff of 270 –300K, leaves me at 4100 for all.
Next, I’m hoping to try to get a DHCP server and a DNS cache working, and some more remote monitoring cgi-stuff for the web server. Maybe some SNMP stuff, maybe some routed. Anyone with any luck on those?