✨ figured out more about ssh
This commit is contained in:
parent
3eaa0898cb
commit
ca3c917341
2 changed files with 26 additions and 0 deletions
26
ssh_into_localhost.txt
Normal file
26
ssh_into_localhost.txt
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue