The Sonicwall has very limited SSH support.
Here are the things I was able to change with command line.
1. Anything VPN Releated
2. Anything Address Object Related
Here are the things I was NOT able to change
1. Sonicwall Password
2. Sonicwall Identifier
3. Network Interface IP addresses
4. DHCP Server Ranges
Here is the script for changing Stuff with putty
First run this command line
c:puttyputty.exe -ssh admin@10.29.143.1
copy and paste below and right click into putty to paste and run the following commands.
admin
password
config
vpn policy HQ
id local sonicwall-id “policy”
exit
address-object Server
host 10.20.1.100
exit
address-object “LAN VPN”
range 10.20.1.100 10.20.1.104
exit
end