Serial command line authentication
Does anybody knows how to setup authentication when connecting to command line via serial interface. I would like to protect data or at least make it difficult to someone with phisical access to device to get it.
Here are the steps to deactivate the serial terminal:
- Open the following file: /etc/inittab
- It will look something like this:
::sysinit:/etc/init.d/rcS S boot ::shutdown:/etc/init.d/rcS K shutdown ::askconsole:/usr/libexec/login.sh
- To disable the serial terminal, the line with askconsole needs to be commented out, like so:
::sysinit:/etc/init.d/rcS S boot ::shutdown:/etc/init.d/rcS K shutdown #::askconsole:/usr/libexec/login.sh
- Reboot the Omega and the serial terminal will no longer be available. Note that there will still be kernel messages printed, but the terminal will not be available.
To make the serial port console use authentication, open the file
Edit the line that says
option ttylogin '0'and change the 0 to a 1.
Reboot the system. It will now ask you for a login on the serial port console. Default is user: root, password: onioneer