Enabling SSH on Freebsd

By | January 1, 2007

A fresh install of DesktopBSD or PCBSD does not allow remote SSH
logins, took me a while to find all this out so I decided to put it all
in one place. DesktopBSD does not install sshd by default.

  1. Install SSH, on DesktopBSD just run the package manager and install OpenSSH
  2. Make sure there is an editor installed that you can use, I installed nano with the package manager
  3. Open /etc/rc.conf and insert this at the end sshd_enable="YES"
  4. run /etc/rc.d/sshd start
  5. Type a full line of junk as requested to generate the keys
  6. OK sshd is now running but you won't be able to login into it with just a user name and password
  7. nano /etc/ssh/sshd_config
  8. change the line "PasswordAuthentication no" to PasswordAuthentication yes and remove the # at the start of line
  9. If you want to login as root PermitRootLogin yes
  10. Restart sshd by running /etc/rc.d/sshd restart
  11. Check status with /etc/rc.d/sshd status

thats it, go to another machine and you should be able to now login vis SSH.

Leave a Reply