Closed GoogleCodeExporter closed 9 years ago
First, you have to do is to change the rights of your folder on disk.
# chown -R admin:admin /media/AiDisk_a1/opt
# chmod -R 764 /media/AiDisk_a1/opt
# chmod 640 /media/AiDisk_a1/opt/etc/openssh
After these actions openssh should be installed.
And about auto start. It work on N56u thanks to the efforts of Andy Padavan. In
your case, there should be two scripts where you can place the code for
minidlna, so it could be started automatically.
You device is on broadcom chip. So there should be alternative firmwares by
Tomato, DD-WRT, or others.
PS: Always read the output of commands you type in the command line. It has
all needed information for you to make apps work! :)
Original comment by d...@soulblader.com
on 31 Mar 2012 at 1:38
I managed to install openssh with the right permission but any password I type
will not be recognized.
I don't want to use dd-wrt, I just want to minidlna start automaticaly or to
replace inbuild v1.0.21 with 1.0.24
Where should I type the two scripts?
I need openssh to acces the root of the router if is possible.
If Andy Padavan would have a RT-N66U router I'm sure he will make miracles with
the stoc garbage firmware.
Thanx for your help
Original comment by Livi...@gmail.com
on 2 Apr 2012 at 6:04
I haven't seen N66U interface, that's why I can't tell you scripts path. =/
But try to do in the terminal and then post here:
# nvram show | grep mount
for openssh you should make keys.
# ssh-keygen -t rsa
Then check if the server is running:
# netstat -tpln
You should see such line:
...
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
...
If there is no such line, check in processes:
# ps aux | grep sshd
Also uncomment and edit HostKey in /opt/etc/openssh/sshd_config
Original comment by d...@soulblader.com
on 2 Apr 2012 at 7:39
admin@RT-N66U:/tmp/mnt/sda1/asusware/etc/openssh# nvram show | grep mount
size: 29232 bytes (3536 left)
usb_automount=1
apps_mounted_path=/tmp/mnt/sda1
script_usbmount=
script_usbumount=
--------------------------------------------------------------------------------
-----
admin@RT-N66U:/tmp/mnt/sda1/asusware/etc/openssh# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): key
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in key.
Your public key has been saved in key.pub.
The key fingerprint is:
87:ac:75:77:2b:c7:30:75:ca:18:34:43:fa:d2:b8:ff admin@RT-N66U
The key's randomart image is:
+--[ RSA 2048]----+
| .= |
| o o |
| . . . .|
| . . + = o |
| S = B + |
| o o + = . |
| . . . + |
| . o |
| ..E |
+-----------------+
--------------------------------------------------------------------------------
-----
admin@RT-N66U:/tmp/mnt/sda1/asusware/etc/openssh# netstat -tpln
netstat: invalid option -- p
BusyBox v1.17.4 (2012-03-08 19:28:37 CST) multi-call binary.
Usage: netstat [-laentuwxrW]
Display networking information
Options:
-l Display listening server sockets
-a Display all sockets (default: connected)
-e Display other/more information
-n Don't resolve names
-t Tcp sockets
-u Udp sockets
-w Raw sockets
-x Unix sockets
-r Display routing table
-W Display with no column truncation
--------------------------------------------------------------------------------
-----
admin@RT-N66U:/tmp/mnt/sda1/asusware/etc/openssh# netstat -tln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:5473 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:18017 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3490 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3394 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9091 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:515 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9092 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6789 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.1:1990 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:4712 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8200 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.1:139 0.0.0.0:* LISTEN
tcp 0 0 192.168.82.60:139 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9100 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9998 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:51413 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:4662 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:1723 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.1:445 0.0.0.0:* LISTEN
tcp 0 0 192.168.82.60:445 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3838 0.0.0.0:* LISTEN
tcp 0 0 :::51413 :::* LISTEN
tcp 0 0 :::53 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::23 :::* LISTEN
--------------------------------------------------------------------------------
-----
admin@RT-N66U:/tmp/mnt/sda1/asusware/etc/openssh# ps aux | grep sshd
ps: invalid option -- a
BusyBox v1.17.4 (2012-03-08 19:28:37 CST) multi-call binary.
Usage: ps
Show list of processes
Options:
w Wide output
--------------------------------------------------------------------------------
-----
admin@RT-N66U:/tmp/mnt/sda1/asusware/etc/openssh# ps | grep sshd
1933 admin 1528 S grep sshd
26868 admin 3344 S /opt/sbin/sshd
I created key for open ssh but still not accepting any password
Original comment by anenico...@gmail.com
on 3 Apr 2012 at 6:14
You are creating keys in incorrect path. I wrote you to see sshd_config for the
correct path. OpenSSH in Optware uses the next path by default:
/opt/etc/openssh/ssh_host_rsa_key. So you should use it instead of "key" you've
used.
I can see, there are 2 nvram values for mount and umount scripts path. That's
good. I think it will be possible to port scripts from N56U for auto-start
scripts, located on you disk. But it uses some other logic for mounting.
Please, post the output of mount command (when your USB is plugged-in). Just do:
# mount
Then, lets check, that these values really work.
create the script /opt/bin/opt-mount.sh:
# vi /opt/bin/opt-mount.sh
And add there the following:
#!/bin/sh
logger -t "$0" "Hey, I'm working!"
Then do:
# chmox +x /opt/bin/opt-mount.sh
# nvram set script_usbmount=opt/bin/opt-mount.sh
# nvram commit
Then unplug your disk and plug it again to USB port. Check syslog in web GUI
for phrase you added to script. If you can find it, then the half of deal is
done! =)
Original comment by d...@soulblader.com
on 3 Apr 2012 at 9:28
I created keys in /opt/etc/openssh/ssh_host_rsa_key but still not recognize
password
The opt-mount script is working, in syslog I get:
Apr 4 13:28:13 hotplug[1013]: USB ext3 fs at /dev/sda1 mounted on /tmp/mnt/sda1
Apr 4 13:28:13 kernel: EXT3 FS on sda1, internal journal
Apr 4 13:28:13 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Apr 4 13:28:14 opt/bin/opt-mount.sh: Hey, I'm working!
I added /opt/etc/init.d/S98minidlna start in opt-mount.sh right after:
#!/bin/sh
logger -t "$0" "Hey, I'm working!"
but minidlna not starting automaticaly on disk mount or router reboot even if
in the syslog it appears to start:
Apr 4 13:28:14 opt/bin/opt-mount.sh: Hey, I'm working!
Apr 4 13:28:14 minidlna: Starting minidlna...
Original comment by Livi...@gmail.com
on 4 Apr 2012 at 10:53
Hi, it can't start now, because the file had been invoked. I'll try to port
starting scripts for you tonight. Then it will start automatically.
And what about the output of "mount" command?..
Original comment by d...@soulblader.com
on 4 Apr 2012 at 1:48
Sorry, I forget about that
admin@RT-N66U:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw)
devfs on /dev type tmpfs (rw,noatime)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /tmp/mnt/sda1 type ext3 (rw,nodev,noatime,data=ordered)
One more thing, I cannot acces telnet from wan even if I oppened the port 22
and 23
Original comment by Livi...@gmail.com
on 4 Apr 2012 at 4:14
It seems you can't forward ports to router itself. This rule is in native
firmware of N56U too.
So, finally =)
First, cd to disk, where your opt directory is located (it seems to be:
/tmp/mnt/sda1)
Do:
# ls -la
to be sure that "opt" exists in this location. If it does:
# wget -qc http://dl.dropbox.com/u/44733876/test/autoex_n66u.tar.gz -O- | tar
-zx
Then:
# nvram set script_usbmount=opt/bin/opt-mount.sh
# nvram set script_usbumount=opt/bin/opt-umount.sh
# nvram commit
Reboot the device and see syslog on errors. I hope it will be clear! =)
Original comment by d...@soulblader.com
on 5 Apr 2012 at 5:57
I suppose, that openssh doesn't work because opt directory is not mounted to
/opt.
How you've managed to install openssh without it, that's what interesting... =)
Original comment by d...@soulblader.com
on 5 Apr 2012 at 6:19
Somehow /opt is redirected to /asusware folder
ex:
admin@RT-N66U:/tmp/home/root# cd /opt
admin@RT-N66U:/tmp/mnt/sda1/asusware#
admin@RT-N66U:/tmp/home/root# cd /opt/etc
admin@RT-N66U:/tmp/mnt/sda1/asusware/etc#
I will try a little bit later opt-mount.sh
THX
Original comment by Livi...@gmail.com
on 5 Apr 2012 at 6:29
ok, it can be a symlink then:
try:
# ls -la /
I think there should be smth. like:
/opt -> /tmp/mnt/sda/asusware
If so, I think I should correct these scripts a little...
Original comment by d...@soulblader.com
on 5 Apr 2012 at 7:06
admin@RT-N66U:/tmp/home/root# ls -la /
drwxr-xr-x 16 admin root 208 Mar 8 13:42 .
drwxr-xr-x 16 admin root 208 Mar 8 13:42 ..
drwxr-xr-x 2 admin root 515 Mar 8 13:42 bin
drwxr-xr-x 2 admin root 3 Mar 8 13:42 cifs1
drwxr-xr-x 2 admin root 3 Mar 8 13:42 cifs2
drwxrwxrwt 4 admin root 1740 Jan 1 2011 dev
lrwxrwxrwx 1 admin root 7 Mar 8 13:42 etc -> tmp/etc
lrwxrwxrwx 1 admin root 8 Mar 8 13:42 home -> tmp/home
drwxr-xr-x 2 admin root 3 Mar 8 13:42 jffs
drwxr-xr-x 3 admin root 173 Mar 8 13:42 lib
drwxr-xr-x 2 admin root 3 Mar 8 13:42 mmc
lrwxrwxrwx 1 admin root 7 Mar 8 13:42 mnt -> tmp/mnt
lrwxrwxrwx 1 admin root 7 Mar 8 13:42 opt -> tmp/opt
dr-xr-xr-x 62 admin root 0 Jan 1 2000 proc
drwxr-xr-x 3 admin root 484 Mar 8 13:42 rom
lrwxrwxrwx 1 admin root 13 Mar 8 13:42 root -> tmp/home/root
drwxr-xr-x 2 admin root 1516 Mar 8 13:42 sbin
drwxr-xr-x 10 admin root 0 Jan 1 2000 sys
drwxrwxrwx 9 admin root 540 Apr 5 10:11 tmp
drwxr-xr-x 6 admin root 74 Mar 8 13:42 usr
lrwxrwxrwx 1 admin root 7 Mar 8 13:42 var -> tmp/var
drwxr-xr-x 12 admin root 3575 Mar 8 13:42 www
Original comment by Livi...@gmail.com
on 5 Apr 2012 at 10:56
I'm afraid, there are too many references...
Try with that script archive.
Original comment by d...@soulblader.com
on 5 Apr 2012 at 11:40
Not working but it's not such a big deal, maybe asus will release soon a new
updated firmware, I seen on they ftp site
ftp://ftp.asus.com.tw/pub/ASUS/wireless/RT-N66U_B1/ that is already
GPL_RT_N66U_B1_3003112.zip.
Thank you
Original comment by Livi...@gmail.com
on 5 Apr 2012 at 12:56
Ahrrr =(
Where does it fail? Any log records? I suppose, these scripts are being called
with another parameters. Need to see the line in log: "opt-mount.sh: started
[.....]"
The key is in values of square brackets...
Original comment by d...@soulblader.com
on 5 Apr 2012 at 1:28
I added logger -t "$0" "Hey, I'm working!" to opt-mount.sh to see if it's
working and I attached the entire syslog:
Original comment by Livi...@gmail.com
on 5 Apr 2012 at 2:15
Attachments:
I can see now! Line no 193. It doesn't work because the scripts is invoked
without parameters at all. It checks - if there are not 2 parameters were
given, then it exits. I'll change them now! =)
Original comment by d...@soulblader.com
on 5 Apr 2012 at 2:38
ok, let's try again ))
# cd /
# wget -qc http://dl.dropbox.com/u/44733876/test/autoex_n66u.tar.gz -O- | tar
-zx
And reboot...
Original comment by d...@soulblader.com
on 5 Apr 2012 at 2:49
Now opt-mount.sh not showing at all
Jan 1 02:00:11 kernel: EXT3-fs: Unrecognized mount option "umask=0000" or
missing value
Jan 1 02:00:11 hotplug[641]: USB /dev/sda1(ext3) failed to mount at the first
try!
Jan 1 02:00:11 kernel: Ebtables v2.0 registered
Jan 1 02:00:12 kernel: kjournald starting. Commit interval 5 seconds
Jan 1 02:00:12 hotplug[641]: USB ext3 fs at /dev/sda1 mounted on /tmp/mnt/sda1
Jan 1 02:00:12 kernel: EXT3 FS on sda1, internal journal
Jan 1 02:00:12 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan 1 02:00:12 hotplug[641]: USB partition unmounted from /tmp/mnt/sda1
Jan 1 02:00:13 kernel: EXT3-fs: Unrecognized mount option "umask=0000" or
missing value
Jan 1 02:00:13 hotplug[641]: USB /dev/sda1(ext3) failed to mount at the first
try!
Jan 1 02:00:13 kernel: kjournald starting. Commit interval 5 seconds
Jan 1 02:00:13 kernel: EXT3 FS on sda1, internal journal
Jan 1 02:00:13 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan 1 02:00:13 hotplug[641]: USB ext3 fs at /dev/sda1 mounted on /tmp/mnt/sda1
Jan 1 02:00:13 pppd[592]: PAP authentication succeeded
Jan 1 02:00:13 pppd[592]: peer from calling number
Original comment by Livi...@gmail.com
on 5 Apr 2012 at 3:05
Wait a sec, I think is working but I have to go somewhere, I will post the
result later
Original comment by Livi...@gmail.com
on 5 Apr 2012 at 3:42
It's working but it takes just more times to mount the usb hdd.
Thank you
Original comment by Livi...@gmail.com
on 6 Apr 2012 at 6:40
That's great! You are welcome! )
Sorry for my Chinese, but I haven't understood the last sentence - 'but it
takes just more times to mount the usb hdd.'
Do you mean the time when the disk becomes accessible has been increased?
That's fine, because scripts need some time to load applicattions. Furthermore,
you should check files updating options in /opt/etc/init.d/S98minidlna.
And what about ssh? It still doesn't work?..
Original comment by d...@soulblader.com
on 6 Apr 2012 at 7:54
Sorry for my japanese too, I guess it's something wrong in the original
firmware, I made fresh install and after 5-15 reboots the hdd is not mounting
quickly but it takes 10 minutes more or less and this was before your help. I
tried with 3 different usb disks formatted every time ext3.
I oppened a ticket with asus support but the only answer was to update the
firmware to the latest version (I allready have the latest 3.0.0.3.1008), even
my grandmother knows this answer, asus support is terrible.
Thx for your support russian guys.
I didn't tried ssh anymore, maybe later today, S98minidlna is by default
enabled 0, do not update.
I can't acces my router from work with telnet because like you said before:
can't forward ports to router itself.
Original comment by Livi...@gmail.com
on 6 Apr 2012 at 8:18
=)
Yes, you are right, Asus support needs more well educated specialists...
I do not recommend you to use telnet outside your home network for its complete
insecurity. I'll try to install OpenSSH myself a little bit later today to see
if there are any special things.. But I'm afraid there is no way to forward
port to use it from the Internet (only fix it in the firmware)
Original comment by d...@soulblader.com
on 6 Apr 2012 at 8:46
UP:
Just tried OpenSSH.
You know, I've just installed it using: ipkg install openssh
and it works. The only thing - I've had to clean known-hosts file on my
desktop, because there were another finger-prints for router ip. What error did
you get, when you was trying to connect?..
Original comment by d...@soulblader.com
on 6 Apr 2012 at 8:57
ASUSWRT RT-N66U_3.0.0.3 Thu Mar 8 11:28:38 UTC 2012
admin@RT-N66U:/tmp/home/root# ipkg install openssh
Installing openssh (5.9p1-1) to /opt/...
Downloading
http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/openssh_5.9p1-1_mips
el.ipk
Configuring openssh
update-alternatives: Linking //opt/bin/scp to /opt/bin/openssh-scp
update-alternatives: Linking //opt/bin/ssh to /opt/bin/openssh-ssh
Generating RSA Key...
Generating public/private rsa1 key pair.
Your identification has been saved in /opt/etc/openssh/ssh_host_key.
Your public key has been saved in /opt/etc/openssh/ssh_host_key.pub.
The key fingerprint is:
c0:13:98:5c:36:09:df:e6:0a:d9:30:43:52:5e:ea:18
The key's randomart image is:
+--[RSA1 2048]----+
| .o+=*. |
| ++*.+ |
| E * = o |
| + * = |
| . + . S |
| . . |
| . |
| |
| |
+-----------------+
Generating RSA Key...
Generating public/private rsa key pair.
Your identification has been saved in /opt/etc/openssh/ssh_host_rsa_key.
Your public key has been saved in /opt/etc/openssh/ssh_host_rsa_key.pub.
The key fingerprint is:
c3:3f:73:32:75:34:fc:97:ef:5a:b6:37:13:3d:60:ae
The key's randomart image is:
+--[ RSA 2048]----+
| |
| . |
| + |
| . + o.|
| S + o.+|
| o . o o+|
| * o *|
| E *o|
| .o=|
+-----------------+
Generating DSA Key...
Generating public/private dsa key pair.
Your identification has been saved in /opt/etc/openssh/ssh_host_dsa_key.
Your public key has been saved in /opt/etc/openssh/ssh_host_dsa_key.pub.
The key fingerprint is:
01:2b:90:30:04:a9:2f:ea:51:d6:e9:1b:de:1d:dc:22
The key's randomart image is:
+--[ DSA 1024]----+
|*+.. . |
|.... o |
|. . . . |
|. ... . |
| . o o S |
|. + . . . |
|.o o E + . |
|. . . + o o |
|.. o . . |
+-----------------+
Fixing permissions on the /tmp directory...
killall: /opt/sbin/sshd: no process killed
Successfully terminated.
Than with putty, connect to 192.168.1.1 port 22 and UTF8 translation
login as: admin
admin@192.168.1.1's password:
Access denied
admin@192.168.1.1's password:
Access denied
admin@192.168.1.1's password:
Access denied
admin@192.168.1.1's password:
Access denied
admin@192.168.1.1's password:
The only error is acces denied
Original comment by Livi...@gmail.com
on 6 Apr 2012 at 11:06
Try to view in syslog what does it want. =)
The last line seems to be strange - 'killall: /opt/sbin/sshd: no process
killed'.
It seems that server is not running.
You should start it with: /opt/etc/init.d/S__sshd (replace __ with number - I
can't remember it now)
You also need to change this script. As far as I remember there is no stop
function. So your disk wouldn't be unmounted correctly until ssd runs from it.
Original comment by d...@soulblader.com
on 6 Apr 2012 at 9:25
I have same trouble. After looking to syslog I found strange msg: "Account
admin has expired".
So then I go to /etc/shadow and increase number of last login. and remove last
two zeros.
Then I got Authentication refused: bad ownership or modes for file
/tmp/home/root/.ssh/authorized_keys.
And I changed permission to 0700. and all works fine.
Original comment by mich...@jetthoughts.com
on 7 Apr 2012 at 7:45
The shadow file contains:
admin:$1$TW3WPN4z$c4RPpI.QaCNUKSdXdXkSL/:0:0:99999:7:0:0:
nobody:*:0:0:99999:7:0:0:
nas:*:0:0:99999:7:0:0:
I don't have the .ssh folder, you have the same RT-N66U router?
Original comment by Livi...@gmail.com
on 7 Apr 2012 at 9:59
Liviu, you can check this folder the next way:
# ls -la $HOME/.ssh
Original comment by d...@soulblader.com
on 7 Apr 2012 at 10:05
d...@soulblader.com
I'm tired for trying, if you want contact me by email and I give you access
from vpn or team viewer, I will format my hdd again and make all from scratch...
Original comment by Livi...@gmail.com
on 7 Apr 2012 at 1:53
=) I can understand you!...
And as far as I remember - there is a build-in vpn server. Have you tried to
configure it? Does it work? If it does - it is a better solution to connect
from outside...
Original comment by d...@soulblader.com
on 7 Apr 2012 at 3:17
sorry for the stupid question. i have sock fw 108 installed. i log in using
telnet but /opt is missing (and so is ipkg). /opt is a symlink to tmp/opt which
is not there. what am i doing wrong?
Original comment by avi...@gmail.com
on 11 Apr 2012 at 7:20
Actualy, is not a stupid question, optware is not enabled by default, plug a
usb disk than go to usb application and install Download Master, now optware is
enabled but in a different way, opt folder is replaced by asusware.
Here http://forum.ixbt.com/topic.cgi?id=14:56360-6 is a guide from PeterV how
to enable the original optware, is in russian and I don't understand much with
google translate, maybe someone will translate better for us.
If you want to update minidlna to v1.0.24 better upload this firmware
http://vip.asus.com/forum/view.aspx?id=20120406112322914&board_id=11&model=RT-N6
6U+(VER.B1)&page=1&SLanguage=en-us
Original comment by Livi...@gmail.com
on 11 Apr 2012 at 7:58
I am back with a new question, every time I unmount the drive or restart the
router it takes 10 minutes to mount again, see the log, there is no activity
from 19:55:30 to 20:06:00
Apr 11 19:55:30 pppd[538]: System time change detected.
Apr 11 20:06:00 kernel: EXT3-fs: Unrecognized mount option "umask=0000" or
missing value
Original comment by Livi...@gmail.com
on 12 Apr 2012 at 8:11
Attachments:
This is the ASUS way to mount disk ))
There is a mistake in the beginning, I can't say why it is mounts and unmounts
it for some time. This needs the source code reading =/
Original comment by d...@soulblader.com
on 12 Apr 2012 at 9:39
Thanks for the guide. I was able to install openssh. Few notes: the usb needs
to be non-fat32 because you cannot set proper file permissions on the ssh keys
to satisfy sshd. I use ext2 fs now...
and for the "error: Could not get shadow information for NOUSER" the user above
was right, you have to edit the shadow file manually to fix it. There is no
add[user/groups] commands on the asus distro... i wonder if this edit survives
a reboot... anyways your file should look like this:
admin:$1$TW3WPN4z$c4RPpI.QaCNUKSdXdXkSL/:13064:0:99999:7:::
...
Now im able to login. Regarding WAN access, maybe playing with /etc/sshd_config
file and ListenAddress can fix this?
Thanks!
Original comment by avi...@gmail.com
on 14 Apr 2012 at 1:59
Sure, you can use only ext2 or ext3 partition for the Optware.
There is adduser package in the Optware repository (ipkg install adduser).
But it will be replaced with values from nvram on reboot. It can also be
replaced without reboot in runtime by rc. You can add some custom scripts,
which will be executed on boot (disk mount), but keep in mind that it is not
'the complete' solution.
For example:
grep -q ^username /etc/passwd || adduser ....
or you can use sed to fix it with regex.
Or maybe try to install dropbear. It doesn't have all openssh functions, but it
is smaller.
One small question /etc/sshd_config - is it the correct path? (I just wondering
of the directories tree. It seems to be unusual in N66...)
Original comment by d...@soulblader.com
on 14 Apr 2012 at 2:59
you are right it is on /opt/etc/openssh/sshd_config
Original comment by avi...@gmail.com
on 14 Apr 2012 at 6:36
Original issue reported on code.google.com by
Livi...@gmail.com
on 31 Mar 2012 at 7:11