g0blin icon indicating copy to clipboard operation
g0blin copied to clipboard

OpenSSH doesn't work

Open rweichler opened this issue 7 years ago • 3 comments

I'm pretty sure you just need to use dropbear. Here's what happens when I manually try to start sshd:

key load public: invalid format
Could not load host key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.

rweichler avatar Feb 08 '18 18:02 rweichler

@rweichler I agree! I use Dropbear from ichitaso's beta repository. If you use this Dropbear, though, you must be sure to use port 2222.

e.g. ssh -p 2222 root@ipAddressFromWiFi

nik312123 avatar Feb 14 '18 05:02 nik312123

Got OpenSSH working by doing the following in MTerminal: su ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa reboot (run g0blin again)

cgarst avatar Feb 23 '18 19:02 cgarst

@cgarst can you share the output of find / -iname "ssh*" run as root from the phone?

resistor4u avatar Mar 01 '18 07:03 resistor4u