Created
August 8, 2018 23:22
-
-
Save unxmaal/e6c8eac41aec0b6347efdb341a0f0d27 to your computer and use it in GitHub Desktop.
sshd setup for A/UX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate host keys | |
ssh-keygen -t rsa /tmp/ssh_host_rsa_key | |
ssh-keygen -t dsa /tmp/ssh_host_dsa_key | |
# create /usr/local/etc/sshd.conf | |
# Changed items in /usr/local/etc/sshd.conf | |
Port 22 | |
ListenAddress <host IP> | |
SyslogFacility AUTH | |
LogLevel DEBUG2 | |
PermitRootLogin yes | |
RSAAuthentication yes | |
PubkeyAuthentication no | |
AuthorizedKeysFile .ssh/authorized_keys | |
PasswordAuthentication yes | |
PrintMotd yes | |
PrintLastLog yes | |
TCPKeepAlive yes | |
UseLogin no | |
Compression no | |
Subsystem sftp /usr/local/libexec/sftp-server | |
# Append to /etc/rc | |
/usr/local/sbin/prngd /var/run/egd-pool | |
/usr/local/sbin/sshd | |
# NOTE: I vaguely recall having to create some extra files or directories for prngd. Best to test this manually first. | |
# Create a non-root user account | |
# I had some issues with logging in as root via ssh, so I made a regular user. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
quadra-950.root # ssh-keygen -t dsa /tmp/ssh_host_dsa_key Couldn't connect to PRNGD socket "/var/run/egd-pool": No such file or directory PRNG initialisation failed -- exiting. ssh-rand-helper child produced insufficient data
/var doesn't exist