NSLU2-Linux
view · edit · print · history

Method 1:

  1. ipkg update
  2. ipkg install dropbear (To make sure you have the latest version of dropbear installed first)
  3. Change DROPBEAR_PORT parameter in /etc/init.d/dropbear from default 22 to other port number.
  4. Reboot.
  5. ssh to the new port number.
  6. Run 'ipkg install openssh-sshd'. If it complains about a conflict with dropbear just use -force-depends.
  7. Reboot. (Remember, this will take a long time, since sshd has to generate a new host key)
  8. ssh to port 22, you are now connected to OpenSSH sshd.
  9. Run 'ipkg remove dropbear'.

Alternatively, instead of the reboot, you could type "/etc/init.d/dropbear stop; /etc/init.d/dropbear start" and then log back in.

Also, installing openssh-sshd will only give you the ssh daemon; you'll also want to install the other openssh packages (openssh-ssh and openssh-scp come to mind).

Method 2: (rebootless, using screen)

  1. ipkg update
  2. ipkg install dropbear screen
  3. Change DROPBEAR_PORT parameter in /etc/init.d/dropbear from default 22 to other port number.
  4. screen -dm /etc/init.d/dropbear restart (This will kill your current ssh session)
  5. ssh to the new port number.
  6. ipkg install openssh (or just openssh_sshd). If it complains about a conflict with dropbear just use -force-depends.
  7. run /etc/init.d/sshd start (It will take forever while sshd generates a key. It's not hung)
  8. logout, and ssh to port 22
  9. ipkg remove dropbear

Voila! You're now running openssh sshd.

(Request for clarification - why the screen -dm - is that just to achieve the same sort of thing as nohup?) Yes.

view · edit · print · history · Last edited by Dean Jackson.
Based on work by repvik, jcc, JimmyFergus, and zin.
Originally by zin.
Page last modified on January 06, 2007, at 01:44 AM