Skip to content

Instantly share code, notes, and snippets.

Last active August 31, 2023 17:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
[Asus Router] Useful SSH Commands
# Modify Hosts file (/jffs/configs/hosts.add)
service restart_dnsmasq
# Parse Custom Client List
nvram get custom_clientlist | sed 's/</\n/g; s/>/\t/g' | sed 's/^/custom\t/' | tail '+2' | sed 's/\(^.*\)\(\t.*\)\(\t[0-9A-F][0-9A-F]:.*$\)/\1\3\2/'
# Remove Logged in User restriction
nvram unset login_ip
nvram commit
# Restart WAN interface
service restart_wan
# Restart Wireless
service restart_wireless
# Restart Web GUI
service restart_httpd
# My SSH Public Key
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOG+jfDK6jEtCE8fCnD6+t4yMjRKyfAeB+4gyhirZ13/ jcefoli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment