DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-01-17 01:33:48

mfpockets
Member
Registered: 2011-01-10
Posts: 44

How to fix SSH?

Hi,

I recently flashed my DNS-323 to ALT-F.  I used to have ffp installed but I removed it, and installed it to a USB. 

When I try to run ssh again it shows this

login as: root
root@10.0.0.5's password:
COLUMNS=80;LINES=24;export COLUMNS LINES;
#



after that I cant do anything.

Any ideas?

Offline

 

#2 2011-01-17 03:29:36

jcard
Member
From: Portugal
Registered: 2008-09-21
Posts: 289

Re: How to fix SSH?

mfpockets wrote:

Hi,

I recently flashed my DNS-323 to ALT-F.  I used to have ffp installed but I removed it, and installed it to a USB. 

When I try to run ssh again it shows this

login as: root
root@10.0.0.5's password:
COLUMNS=80;LINES=24;export COLUMNS LINES;
#



after that I cant do anything.

Any ideas?

> after that I cant do anything.

you mean: you can't type and execute commands, right?
But you can still move you fingers, I hope smile

>  I used to have ffp installed but I removed it, and installed it to a USB.

And have you turned off the ssh ffp service? Alt-F has ssh, you don't need ffp for that.

Alt-F tries to run any enabled ffp services if it finds a ffp directory at the root of any filesystem, including USB.
Unless you have installed ffp using Alt-F web page ffp installation, which disables all services; you have to reenable the ones you really need, not conflicting with the ones already provided by Alt-F.

Start by ejecting the usb pen (Disk->Utilities->>Eject) and retry. If it works, then replug the USB and disable ffp ssh.

   chmod -x /ffp/start/sshd.sh

Last edited by jcard (2011-01-17 03:38:26)


Please consider discussing Alt-F at http://groups.google.com/group/alt-f/topics
Please consider filling Alt-F bugs at http://code.google.com/p/alt-f/issues/list

Offline

 

#3 2011-01-17 15:00:03

mfpockets
Member
Registered: 2011-01-10
Posts: 44

Re: How to fix SSH?

Thanks, I ejected the USB, then rebooted, when I try to connect I get the same output in the ssh shell.

Do I need to alter the root password somewhere?  Or do an initial setup?  I tried to go to Services>network and configure inetd but you cannot configure SSH.

Last edited by mfpockets (2011-01-17 15:08:55)

Offline

 

#4 2011-01-17 20:08:32

jcard
Member
From: Portugal
Registered: 2008-09-21
Posts: 289

Re: How to fix SSH?

login as: root
root@10.0.0.5's password:
COLUMNS=80;LINES=24;export COLUMNS LINES;
#

-The root password is initially the same as the web interface password
  -have you setup a web password?
  -have you changed the root password?

-Are you connecting from what ssh client?
  -Linux command line?
  -or some MS-windows client?

-Can you telnet the box?
  -Is a password asked for?
  -Can you type and execute commands after login?

-There is no setup necessary, when inetd starts (and it is by defaults enabled) it calls the dropbox (ssh) init, which creates the needed host keys (/etc/dropbear/dropbear_dss_host_key  and /etc/dropbear/dropbear_rsa_host_key)
  -the first time you connect using ssh, the client should ask if you accept the host identity -- does that happened?

Please do all testing without ffp


Please consider discussing Alt-F at http://groups.google.com/group/alt-f/topics
Please consider filling Alt-F bugs at http://code.google.com/p/alt-f/issues/list

Offline

 

#5 2011-01-17 21:43:40

mfpockets
Member
Registered: 2011-01-10
Posts: 44

Re: How to fix SSH?

-The root password is initially the same as the web interface password
  -have you setup a web password?
  -have you changed the root password?

I setup a password in the web which is the same password I used for SSH access prior to flashing with alt-f
I changed the root password before I flashed the device when I wasnt using alt-f.  I logged in for the first time through telnet (using putty) and enabled ssh and disabled telnet and saved setup the root password for ssh.

-Are you connecting from what ssh client?
  -Linux command line?
  -or some MS-windows client?

I am using Putty, on a windows Client

-Can you telnet the box?
  -Is a password asked for?
  -Can you type and execute commands after login?
If I telnet into the box it does the exact same thing.  I know it is accepting the username and password as if I purposely type the password wrong it says access denied, if I type it correctly this is returned

login as: root
root@10.0.0.5's password:
COLUMNS=80;LINES=24;export COLUMNS LINES;

Once that returns I can type but it doesnt execute any of the commands I enter.


Well Call me a complete newb!  I was expecting it to show me root@dns-etc: but this setup doesnt.

Also the command I was testing with was ls but it has nothing to list as this one doesnt seem to use the symbolic links to put you on the root of the 1st drive, but typing cd /mnt/sda2 worked just fine.


Is there a reason the prompt no longer shows me my current working directory and username as it did while using FFP before I flashed the device?

Last edited by mfpockets (2011-01-17 21:53:36)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB