![]() Then edit the /etc/ssh/sshd_config with whatever text editor you prefer and change the line PermitTootLogin yes to NO well actually just no. OH and before you forget best turn off ssh access to root to do so:įirst confirm you can ssh using your new user. Not hard at all and you dont compromise your security! Hope I helped someone! From stock OpenWRT 12.09 AA, you have to install these packages: python (with dependencies, consumes 3-4 MB of flash) iptables-mod-nat-extra iptables-mod-ipopt Then, to SSH into the remote server using an SSH key, you have to create a Dropbear-format key: dropbearkey -t rsa -f /root/. Just tested this on Ubuntu 16.04 works like a charm! Now you can shh to your droplet with the new user Now simply copy and past the contents of your public key to this file and save it with ctrl+w ![]() 9 hours ago If you wish to SSH from the OpenWRT device, Dropbear needs the keys in a different. When I connect, I am asked for the password, which can be seen in the Dropbear settings. Dropbear keybased authentication OpenWrt Wiki. Once your signed in change directory to your default directory with the command: authorizedkeysn contains the public key of my pc. ![]() I gotta say I am disappointed in most of you turning on Password Authentication is a MISTAKE DONT DO IT!ĭo this instead just create your user using root then sign in as the NON ROOT user using the su userhere command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |