Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Do you happen to know whether it is possible to telnet or SSH to LG N1A1DD1 NAS?

It seems to have lots of features that I don't need (including FTP) but I couldn't find any mention of the ability to telnet or SSH to it.

If telneting or SSH-ing to it isn't possible, do you know whether it is possible to configure via its web interface a script that can periodically back it up via its USB port? (while still functioning as NAS, of course)

share|improve this question

3 Answers

up vote 3 down vote accepted

According to LG's website, the N1A1 is similar to the N1T1 platform and, as such, here is their official guide on the ports available for that device:

N1T1

21, 20 : FTP - 20, 21 by default and configurable. (If the port for FTP is changed to 2121, then 2121 and 2120 ports should be open.)

55536~55664 : FTP passive mode

80, 8000 : admin web page

443 : https

548 : AFP

9091 : Torrent

51413 : Torrent

You can find this information on LG's support site..

Short answer, it doesn't look like it.

Hope this helps!

share|improve this answer

I was able to ssh into the LG N1A1. Turns out they had telnet enabled as of the latest update and it let me login as root.

This is what you get when you connect to 23 :

--------------------------------------------------------------------
  LG Electronics NAS (REV 10119)   NAS
--------------------------------------------------------------------

NAS login: root
Password:
Last login: Thu Jan  7 03:51:25 PST 2010 from 192.168.1.105 on pts/1
NAS:~#

NAS:~# cd /
NAS:/# ls -l
total 560
drwxr-xr-x   2 root root   4096 Jul  9  2012 bin
drwxr-xr-x   6 root root   4096 Jul  9  2012 boot
drwxr-xr-x  14 root root   3340 Jan  7 03:21 dev
drwxr-xr-x  80 root root   4096 Jan  7 03:51 etc
drwxrwxrwt   3 root root   4096 Jan  1 00:01 export
drwxr-xr-x   5 root root   4096 Jan  7 03:32 home
drwxr-xr-x  11 root root   4096 Nov 29  2011 lib
lrwxrwxrwx   1 root root     11 Jan  1 00:13 linuxrc -> bin/busybox
drwxr-xr-x   2 root root   4096 Mar 14  2011 media
drwxr-xr-x   7 root root   4096 Jul  9  2012 mnt
drwxr-xr-x   2 root root   4096 Mar 14  2011 opt
dr-xr-xr-x 106 root root      0 Dec 31  1969 proc
drwx------   2 root root   4096 Jan  7 03:51 root
drwxr-xr-x   2 root root   4096 Jul  9  2012 sbin
drwxr-xr-x   2 root root   4096 Jul 21  2010 selinux
drwxr-xr-x   3 root root   4096 May 19  2011 srv
drwxr-xr-x  12 root root      0 Dec 31  1999 sys
drwxrwxrwt   5 root root 507904 Jan  6 06:25 tmp
drwxr-xr-x  15 root root   4096 Jul  9  2012 usr
drwxr-xr-x  16 root root   4096 Jul  9  2012 var
NAS:/# uname -a
Linux NAS 2.6.36.2-lgnas #1 Wed Nov 30 10:16:40 KST 2011 armv5tel GNU/Linux
NAS:/#

At this point you can enable ssh login for the root user and perhaps update the config to run it on the standard port (22).

NAS:/etc/ssh# cp sshd_config sshd_config.old
NAS:/etc/ssh# sed -i 's/Port 2020/Port 22/g' sshd_config
NAS:/etc/ssh# sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' sshd_config
NAS:/etc/ssh# service ssh restart
share|improve this answer

Sort of. As of the 9595 firmware update at least, there's an ssh daemon listening at port 2020. I have logged in -- but all it does is return the Last login information and immediately log me back out. I haven't figured out how to actually get access to a shell. Indeed, I was searching for more information on this, myself, when I found this question.

P.S. That's the behavior when I log in with a regular user account I set up through the web interface. When I use the admin account, after logging in I get the curious error, "Could not chdir to home directory /mnt/disk/default/home/admin: No such file or directory" and then it kicks me out.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.