Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to acces the Wallbox once rooted #22

Open
TheMinimaliiiist opened this issue Nov 28, 2024 · 9 comments
Open

Unable to acces the Wallbox once rooted #22

TheMinimaliiiist opened this issue Nov 28, 2024 · 9 comments

Comments

@TheMinimaliiiist
Copy link

Got an issue to connect to the wallbox.
The pwn was sucessful, when I write the command

ssh -i id_rsa [email protected]

I got the error message
Warning: Identity file id_rsa not accessible: No such file or directory. Unable to negotiate with 192.168.1.29 port 22: no matching host key type found. Their offer: ssh-rsa

Then I found another command line

ssh -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa [email protected]

And got the following

[email protected]: Permission denied (publickey).

What is the issue ?

@jagheterfredrik
Copy link
Owner

Add verbose logging to ssh with -vvv

@TheMinimaliiiist
Copy link
Author

Can you provide the whole line, I am not a developper so it's tricky for me

@jagheterfredrik
Copy link
Owner

ssh -i id_rsa -vvv [email protected]

@TheMinimaliiiist
Copy link
Author

TheMinimaliiiist commented Nov 29, 2024

Same issue

OpenSSH_9.8p1, LibreSSL 3.3.6
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.1.29 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/martin/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/martin/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.1.29 [192.168.1.29] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identity file id_rsa type 3
debug1: identity file id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.8
debug1: Remote protocol version 2.0, remote software version dropbear_2018.76
debug1: compat_banner: no match: dropbear_2018.76
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.1.29:22 as 'root'
debug3: record_hostkey: found key type RSA in file /Users/martin/.ssh/known_hosts:1
debug3: load_hostkeys_file: loaded 1 keys from 192.168.1.29
debug1: load_hostkeys: fopen /Users/martin/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],rsa-sha2-512,rsa-sha2-256
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,[email protected]
debug2: host key algorithms: [email protected],[email protected],rsa-sha2-512,rsa-sha2-256,[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected]
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,[email protected]
debug2: host key algorithms: ssh-rsa
debug2: ciphers ctos: aes128-ctr,aes256-ctr,aes128-cbc,aes256-cbc,3des-ctr,3des-cbc
debug2: ciphers stoc: aes128-ctr,aes256-ctr,aes128-cbc,aes256-cbc,3des-ctr,3des-cbc
debug2: MACs ctos: hmac-sha1-96,hmac-sha1,hmac-sha2-256
debug2: MACs stoc: hmac-sha1-96,hmac-sha1,hmac-sha2-256
debug2: compression ctos: [email protected],none
debug2: compression stoc: [email protected],none
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: (no match)
Unable to negotiate with 192.168.1.29 port 22: no matching host key type found. Their offer: ssh-rsa```


It always says the last line... `Unable to negotiate with 192.168.1.29 port 22: no matching host key type found. Their offer: ssh-rsa`

@TheMinimaliiiist
Copy link
Author

I found another line online: ssh -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa [email protected]

But I kept being locked out the Wallbox [email protected]: Permission denied (publickey)

I even tried to delete the known_hosts file, put all the GitHub data on the .ssh file, tried on both Mac, PC W11 and W10, same issue all the time

@jagheterfredrik
Copy link
Owner

You need to run ssh from within the checked out Github repo so that ssh can find the id_rsa key file. Are you?

@TheMinimaliiiist
Copy link
Author

I don't understand you answer so I am surely not doing it the right way.
I have downloaded the raw files from here, put them in a folder and run from that folder.
I also made the same thing from the .ssh folder on a mac and on a PC.
Am I doing it the right way ? What do you mean by "within the checked out GitHub repo" ?

@TheMinimaliiiist
Copy link
Author

OK, I was not using the up to date files from Github, those available to be picked on by one aren't oik, those from the whole .rar file are good

@mfgnerd
Copy link

mfgnerd commented Jan 5, 2025

I had this same issue. ChatGPT got me this command that seemed to have done the trick. Running from windows 11. had issues on ubuntu origially as well

ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa -i id_rsa [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants