diff --git a/ssh_into_localhost.txt b/ssh_into_localhost.txt new file mode 100644 index 00000000..edbbadfa --- /dev/null +++ b/ssh_into_localhost.txt @@ -0,0 +1,26 @@ +You can "practice" with ssh by setting up the ssh_config and sshd_config files correctly + +/etc/ssh_config +ForwardAgent yes +ForwardX11 yes +Port 9669 +XauthLocation /usr/bin/xauth + +/etc/sshd_config +Port 9669 +PermitRootLogin no +MaxAuthTries 3 +AuthorizedKeysFiles +PermitEmptyPasswords no +X11Forwarding yes +ClientAliveInterval 200 +ClientAliveCountMax 3 + +restart the sshd server + +Commands: +Then connect via the LAN: +ssh -Y 192.168.0.76 -t /usr/bin/zsh + +Or whatever: +ssh -Y 192.168.0.76 -t firefox diff --git a/harden_sshd.txt b/sshd_harden.txt similarity index 100% rename from harden_sshd.txt rename to sshd_harden.txt