Help with ssh access

Hello all...

I need some help with ssh access...

When I try to login. I receive a "Permission Denied" error, like below...

PS D:\Users\_tesla_\.ssh> ssh root@horus
The authenticity of host 'horus (192.168.15.1)' can't be established.
ED25519 key fingerprint is SHA256:FbklwQjPjyF4ykAfmySNw3o3my2GTzoofhj3+mBIk48.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'horus' (ED25519) to the list of known hosts.
root@horus: Permission denied (publickey).
PS D:\Users\_tesla_\.ssh>

I read some topics with same error and try the solutions, without luck...
I remove the dropbear instance and reconfigure the new Instance, the same error occur...
I have this config:


or

I just finished setting up a new router and came across this error, which occurs on both Linux and Windows and also on Winscp.

I hope I can fix this error, I intended to deliver this router to my client tomorrow, but if necessary, I will redo it from scratch.

I think you have to check both "Password Login" and "Allow Root Login With Password" to use passwords.

I will try, but I have routers working without this config..

Thanks.

In a default configuration, the only user that is set up with a password is root, so it really doesn't matter. If you are exposing ssh to the Internet you really should use pubkey as it is much more secure.

1 Like

Yes, I know...

The suggested config in post #2 doesn´t work..

The default /etc/config/dropbear is

config dropbear
	option PasswordAuth 'on'
	option RootPasswordAuth 'on'
	option Port         '22'

which does allow root login with password.
Restart dropbear or reboot the router after making changes, maybe the GUI "save and apply" button doesn't do that properly.

Very Nice!
Now, it works!

I believe that the configuration file may have been corrupted in some way, and even after reconfiguring it using Luci, it didn't work correctly. So, I manually edited the cfg file and restarted the service, and it worked correctly after these steps.

Anyway, thanks for your help!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.