Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pbernicchi/8096bd9ce323e4ae5bc1a4c2b173feb1 to your computer and use it in GitHub Desktop.
Save pbernicchi/8096bd9ce323e4ae5bc1a4c2b173feb1 to your computer and use it in GitHub Desktop.
sshd setup for A/UX
# 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