Things to do after the first complete boot of FreeBSD

From Notes to self
Revision as of 22:21, 20 December 2024 by Verbovet (talk | contribs) (Created page with "* <code>$ ssh-copy-id -i ~/.ssh/id_rsa.pub</code> (from a remote machine) * <code>/etc/ssh/sshd_config</code> <pre> Port 26 AddressFamily inet ListenAddress x.x.x.x PermitRootLogin no/prohibit-password PasswordAuthentication no KbdInteractiveAuthentication no PrintMotd no PrintLastLog no </pre> * <code>/etc/ssh/ssh_config</code> <pre> Host * AddressFamily inet </pre> * Switch pkg(8) from Quarterly to Latest: <pre> # mkdir -p /usr/local/etc/pkg/repos # echo 'FreeBSD: {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • $ ssh-copy-id -i ~/.ssh/id_rsa.pub (from a remote machine)
  • /etc/ssh/sshd_config
Port 26
AddressFamily inet
ListenAddress x.x.x.x
PermitRootLogin no/prohibit-password
PasswordAuthentication no
KbdInteractiveAuthentication no
PrintMotd no
PrintLastLog no
  • /etc/ssh/ssh_config
Host *
AddressFamily inet
  • Switch pkg(8) from Quarterly to Latest:
# mkdir -p /usr/local/etc/pkg/repos
# echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }' > /usr/local/etc/pkg/repos/FreeBSD.conf
  • # pkg install bash bash-completion bash-completion-freebsd
  • # ln -s bash /usr/local/bin/sh
  • # passwd toor
  • # chsh -s /usr/local/bin/sh toor