Last active
March 19, 2025 14:34
-
-
Save dskvr/5261c5e4f405fe6081135ca1a565c12d to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
if [ ! -f /usr/lib/sftp-server ]; then | |
ln -s /usr/lib/ssh/sftp-server /usr/lib/sftp-server | |
fi | |
uci set dropbear.@dropbear[0].PasswordAuth='on' | |
uci set dropbear.@dropbear[0].RootPasswordAuth='on' | |
uci set dropbear.@dropbear[0].Port='22' | |
uci commit dropbear | |
/etc/init.d/dropbear restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment