diff options
author | luigi <luigi@FreeBSD.org> | 2013-10-16 16:53:00 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2013-10-16 16:53:00 +0000 |
commit | 36f75b57a31f008bd67f1860f9ba59d2c93a0418 (patch) | |
tree | 57a7ecc77059d12be4cd41854d42f6fb147254cd /release/picobsd/floppy.tree | |
parent | dfbba4bbdc9b74d13e905b0da67876177c07067e (diff) | |
download | FreeBSD-src-36f75b57a31f008bd67f1860f9ba59d2c93a0418.zip FreeBSD-src-36f75b57a31f008bd67f1860f9ba59d2c93a0418.tar.gz |
help running sshd on picobsd
Diffstat (limited to 'release/picobsd/floppy.tree')
-rw-r--r-- | release/picobsd/floppy.tree/etc/rc1 | 7 | ||||
-rw-r--r-- | release/picobsd/floppy.tree/etc/ssh/sshd_config | 9 |
2 files changed, 9 insertions, 7 deletions
diff --git a/release/picobsd/floppy.tree/etc/rc1 b/release/picobsd/floppy.tree/etc/rc1 index 00b12ea..a4a0798 100644 --- a/release/picobsd/floppy.tree/etc/rc1 +++ b/release/picobsd/floppy.tree/etc/rc1 @@ -52,8 +52,11 @@ pwd_mkdb -p ./master.passwd [ "${inetd_enable}" = "YES" -a -f /stand/inetd ] && \ { echo "Starting inetd."; inetd ${inetd_flags} ; } -[ "${sshd_enable}" = "YES" -a -f /stand/sshd ] && \ - { echo "Starting sshd..." ; sshd -f /etc/sshd_config ; } +if [ "${sshd_enable}" = "YES" -a -f /usr/sbin/sshd ] ; then + echo "Starting sshd..." + chmod 600 /etc/ssh_host*key + /usr/sbin/sshd -f /etc/sshd_config +fi echo '' cat /etc/motd diff --git a/release/picobsd/floppy.tree/etc/ssh/sshd_config b/release/picobsd/floppy.tree/etc/ssh/sshd_config index 5e96887..4529c41 100644 --- a/release/picobsd/floppy.tree/etc/ssh/sshd_config +++ b/release/picobsd/floppy.tree/etc/ssh/sshd_config @@ -1,24 +1,23 @@ +# $FreeBSD$ +# minimal config for sshd on picobsd Port 22 ListenAddress 0.0.0.0 HostKey /etc/ssh_host_key -RandomSeed /etc/ssh_random_seed +#RandomSeed /etc/ssh_random_seed ServerKeyBits 768 LoginGraceTime 600 KeyRegenerationInterval 3600 PermitRootLogin yes IgnoreRhosts no StrictModes yes -QuietMode no X11Forwarding no X11DisplayOffset 10 -FascistLogging no PrintMotd yes KeepAlive yes SyslogFacility AUTH -RhostsAuthentication no RhostsRSAAuthentication yes RSAAuthentication yes -PasswordAuthentication no +PasswordAuthentication yes PermitEmptyPasswords no UseLogin no # CheckMail no |