Last active
August 31, 2023 17:15
-
-
Save jcefoli/a0289f00bb764efaa853b92158b817b1 to your computer and use it in GitHub Desktop.
[Asus Router] Useful SSH Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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