User`s guide

Example Scripts
Chapter 17 Command Line Interface 285
Limit root access to the console on Digi Passport products (for SSH only)
Limiting root access to the console prevents root access from any means
except physically logging in on the Digi Passport console. To limit root access:
1. Modify file /etc/inetd.conf and append -f /usr2/sshd_config to the sshd
line.
cp /etc/inetd.conf /usr2/inetd.conf
2. Edit file /etc/ssh/sshd_config. Change PermitRootLogin to no.
cp /etc/ssh/sshd_config /usr2
3. In the in the /usr2/rc.user script, add the following commands just above
exit 0:
cp -a /usr2/inetd.conf /etc/inetd.conf
while killall inetd 2>/dev/null;
do sleep 5;
done
/usr/sbin/inetd
4. Reboot:
reboot
If the Digi Passport unit is reset to factory defaults the script file /usr2/rc.user
is moved to /usr2/rc.user.old# and the default file rc.user is restored.
Send break from existing session with the Digi Passport unit
From a Telnet session
If the Telnet session was initiated from a UNIX command line Telnet client,
issuing the Telnet escape sequence ^] (control-right_square_bracket) displays
the telnet> prompt.
telnet>send brk
Other Telnet clients often have a "send break" option.
From an ssh session
If the session was initiated from an SSH session, enter the SSH break
character sequence. The default is ~break [tilde-break]:
~break
To change the SSH break character sequence, go to Serial ports >
Configuration > Host mode configuration > SSH break sequence