I installed FreeBSD on my pi4 and now i am trying to setup ssh so i can ssh into it and run c files via my computer on the LAN. When i type in 'ifconfig' i get a lot of info but the important information is the IP i need, which does not appear to be present in the network interface...so im thinking i need to assign a static IP address since i do not currently have one. I can login to the computer using itself... but i can not login using another computer on the LAN, i do have root login permission enabled How can i login to my pi using my computer on the same network?
Welcome to RPi SE. It's great to see you're trying a non-standard OS on RPi. I wish you'd edit your question to add some links on where you got your download image, and how the installation went (briefly). I ask this because the information might encourage others to try FreeBSD; in general, switching to another OS is as simple as swapping SD cards.
That said, I wonder if
ifconfig on FreeBSD is the same as
ifconfig on Linux? If your experience to date is mostly with Linux, I think you'll find that using a Unix distro is a bit like dating your girlfriend's older sister :)... most things are similar, but not quite the same.
Another point to make is that I'll guess that many of those who ply the stacks here won't have much experience in other OS, particularly Unix. You might have better luck at the U&L SE, but as always it pays to do your homework before asking others to help you solve your problems.
- Connect your Pi to the router using a cable.
- Open /etc/rc.conf and add the following lines: ifconfig_ue0="DHCP" sshd_enable="YES" Save and reboot
- Check your router for the list of connected hosts to find the IP address assigned to the Pi.
- Before you can SSH into the Pi, make sure you create a new user for your normal usage as FreeBSD does not allow the user named "root" to connect via SSH unless you edit /etc/sshd_config and enable that option.
You can also read this: https://gist.github.com/yarwelp/3cae5db566f643437fa2