OpenSSH/Config

From Ever changing code
< OpenSSH
Revision as of 15:11, 27 May 2019 by Pio2pio (talk | contribs) (Created page with "Below the <code>restrict</code> option is a future proof (according to the documentation) method to disable additional features like port forwarding, pty allocation, etc., sto...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Below the restrict option is a future proof (according to the documentation) method to disable additional features like port forwarding, pty allocation, etc., stopping any attackers from using the key for pivoting or any other malicious activity. The command option forces the command given to be run when this key is used, stopping an attacker from gaining command execution on the machine.

vi ~/.ssh/authorized_keys
command="/usr/local/bin/honeykey admin@honeypot",restrict ssh-rsa AAAAB3Nz******6iakD admin@honeypot

Resources