patrickquek
03-04-2007, 12:14
Hi,
I'm stuck with my dropbear installation, would appreciate if someone can help.
These are the steps I performed:
1) installed dropbear_0.48.1-1_mipsel.ipk just like any other packages
2) generated my private/public keys using Puttygen and saved my private key with passphrase to a local file on my laptop
3) created ~/.ssh and created 'authorized_keys' with my public key in a single line
4) changed the permissions accordingly
[pquek@(none) ~]$ ls -al
drwxr-xr-x 3 pquek 0 128 Apr 3 08:11 .
drwxr-xr-x 3 root 0 72 Apr 3 04:45 ..
-rw------- 1 pquek 42000 244 Apr 3 09:54 .bash_history
-rw-r--r-- 1 pquek 42000 184 Apr 3 05:07 .profile
drwxr-xr-x 2 pquek 42000 80 Apr 3 09:54 .ssh
[pquek@(none) ~]$ cd .ssh
[pquek@(none) .ssh]$ ls -al
drwxr-xr-x 2 pquek 42000 80 Apr 3 09:54 .
drwxr-xr-x 3 pquek 0 128 Apr 3 08:11 ..
-rw-r--r-- 1 pquek 42000 226 Apr 3 08:12 authorized_keys
5) On Putty, i created a new SSH session (port 22) and pointed to my private key file.
6) When i attempt to connect, I get "Connection refused".
7) I check my logread and get the following:
[pquek@(none) ~]$ logread
Apr 3 08:42:41 utelnetd[517]: utelnetd (port: 23, ifname: br0, login: /bin/login) startup succeeded
Apr 3 08:43:13 utelnetd: connection from: 192.168.1.2
Apr 3 08:43:16 login[527]: root login on `pts/0'
Apr 3 08:43:51 dropbear[531]: Failed reading '/opt/etc/dropbear/dropbear_rsa_host_key', disabling RSA
Apr 3 08:43:51 dropbear[531]: Failed reading '/opt/etc/dropbear/dropbear_dss_host_key', disabling DSS
Apr 3 08:43:51 dropbear[531]: premature exit: No hostkeys available
Apr 3 08:50:23 utelnetd: connection from: 192.168.1.2
What am I doing wrong? All the steps I followed above are in strict accordance with the prescribed tutorial at http://wl500g.info/showthread.php?t=7728.
Any advice/help would be appreciated.
Thanks all!
cheers,
Patrick
I'm stuck with my dropbear installation, would appreciate if someone can help.
These are the steps I performed:
1) installed dropbear_0.48.1-1_mipsel.ipk just like any other packages
2) generated my private/public keys using Puttygen and saved my private key with passphrase to a local file on my laptop
3) created ~/.ssh and created 'authorized_keys' with my public key in a single line
4) changed the permissions accordingly
[pquek@(none) ~]$ ls -al
drwxr-xr-x 3 pquek 0 128 Apr 3 08:11 .
drwxr-xr-x 3 root 0 72 Apr 3 04:45 ..
-rw------- 1 pquek 42000 244 Apr 3 09:54 .bash_history
-rw-r--r-- 1 pquek 42000 184 Apr 3 05:07 .profile
drwxr-xr-x 2 pquek 42000 80 Apr 3 09:54 .ssh
[pquek@(none) ~]$ cd .ssh
[pquek@(none) .ssh]$ ls -al
drwxr-xr-x 2 pquek 42000 80 Apr 3 09:54 .
drwxr-xr-x 3 pquek 0 128 Apr 3 08:11 ..
-rw-r--r-- 1 pquek 42000 226 Apr 3 08:12 authorized_keys
5) On Putty, i created a new SSH session (port 22) and pointed to my private key file.
6) When i attempt to connect, I get "Connection refused".
7) I check my logread and get the following:
[pquek@(none) ~]$ logread
Apr 3 08:42:41 utelnetd[517]: utelnetd (port: 23, ifname: br0, login: /bin/login) startup succeeded
Apr 3 08:43:13 utelnetd: connection from: 192.168.1.2
Apr 3 08:43:16 login[527]: root login on `pts/0'
Apr 3 08:43:51 dropbear[531]: Failed reading '/opt/etc/dropbear/dropbear_rsa_host_key', disabling RSA
Apr 3 08:43:51 dropbear[531]: Failed reading '/opt/etc/dropbear/dropbear_dss_host_key', disabling DSS
Apr 3 08:43:51 dropbear[531]: premature exit: No hostkeys available
Apr 3 08:50:23 utelnetd: connection from: 192.168.1.2
What am I doing wrong? All the steps I followed above are in strict accordance with the prescribed tutorial at http://wl500g.info/showthread.php?t=7728.
Any advice/help would be appreciated.
Thanks all!
cheers,
Patrick