Hot answers tagged

1

There is ForceCommand keyword in sshd_config: ForceCommand Forces the execution of the command specified by ForceCommand, ignoring any command supplied by the client and ~/.ssh/rc if present. The command is invoked by using the user's login shell with the -c option. This applies to shell, command, or subsystem execution. It is most useful inside a Match ...


1

hardillb's answer just about covers it, but as for finding public and router ips, this command should show default gateway address (router ip) after "default via": ip route show default, and this for finding public ip: curl https://ipinfo.io/ip; echo. or you could just go to whatismyip.com. Good security practices from server fault answer: To make ...


Only top voted, non community-wiki answers of a minimum length are eligible