Dynamic Dns and Remote ssh and VNC


SUBMITTED BY: benk2x

DATE: Jan. 30, 2020, 9:41 a.m.

FORMAT: Text only

SIZE: 724 Bytes

HITS: 652

  1. $ sudo apt-get install ddclient
  2. PORT FORWARDING ROUTER:
  3. Name: ssh_obscure
  4. Protocol: TCP
  5. Source port: 2121 (or whatever you choose)
  6. Destination IP: (enter the client PC's IP)
  7. Destination Port: 22
  8. $ sudo apt-get install openssh-server
  9. CONFIG
  10. /etc/ssh/sshd_config
  11. >> Port 2121
  12. $ sudo /etc/init.d/ssh force-reload
  13. $ sudo apt-get install fail2ban
  14. $ nano /etc/fail2ban/jail.local
  15. >>>>>>>>>>
  16. [ssh]
  17. enabled = true
  18. port = ssh #(or port = 2121)
  19. filter = sshd
  20. logpath = /var/log/auth.log
  21. maxretry = 3
  22. bantime = 600
  23. >>>>>>>>>>>>>>>>>>
  24. $ sudo /etc/init.d/fail2ban force-reload
  25. $ ssh -p 2121 username@daddy.dyndns.xyz
  26. https://chrisjrob.com/2011/04/05/dynamic-dns-and-remote-ssh-and-vnc/

comments powered by Disqus