# $FreeBSD$#HOME=/rootexport HOMEPATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/binexport PATHTERM=${TERM:-xterm}export TERMPAGER=lessexport PAGER# set ENV to a file invoked each time sh is started for interactive use.ENV=$HOME/.shrc; export ENV# Query terminal size; useful for serial lines.if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi# Uncomment to display a random cookie on each login.# if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune -s ; fisudo opnsense-shell
login as: codenKeyboard-interactive authentication prompts from server:| Password:End of keyboard-interactive prompts from serverLast login: Tue May 17 08:44:12 2022 from 192.168.0.13----------------------------------------------| Hello, this is OPNsense 22.1 | @@@@@@@@@@@@@@@| | @@@@ @@@@| Website: https://opnsense.org/ | @@@\\\ ///@@@| Handbook: https://docs.opnsense.org/ | )))))))) ((((((((| Forums: https://forum.opnsense.org/ | @@@/// \\\@@@| Code: https://github.com/opnsense | @@@@ @@@@| Twitter: https://twitter.com/opnsense | @@@@@@@@@@@@@@@----------------------------------------------coden@hush:~ %
coden@hush:~ % sh .profile*** hush.local: OPNsense 22.1.7_1 (amd64/OpenSSL) *** LAN (igc3) -> v4: 192.168.0.1/24 LAN2 (igc2) -> v4: 192.168.10.1/24 LAN3 (igc1) -> v4: 192.168.20.1/24 WAN (pppoe0) -> v4/PPPoE: x.x.x.x/32 HTTPS: xxxx SSH: xxxx (ECDSA) SSH: SHA256 xxxx (ED25519) SSH: SHA256 xxxx (RSA) 0) Logout 7) Ping host 1) Assign interfaces 8) Shell 2) Set interface IP address 9) pfTop 3) Reset the root password 10) Firewall log 4) Reset to factory defaults 11) Reload all services 5) Power off system 12) Update from console 6) Reboot system 13) Restore a backupEnter an option:
Which shell is configured for the user? The "%" prompt might mean it's csh - which does not read .profile.