From ca3c917341dc638f1163cf285e8890f2878f3e5a Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Thu, 8 Sep 2022 21:52:26 -0700 Subject: [PATCH] :sparkles: figured out more about ssh --- ssh_into_localhost.txt | 26 ++++++++++++++++++++++++++ harden_sshd.txt => sshd_harden.txt | 0 2 files changed, 26 insertions(+) create mode 100644 ssh_into_localhost.txt rename harden_sshd.txt => sshd_harden.txt (100%) 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