NSLU2-Linux
view · edit · print · history

HowTo.SwapFromDropbearToOpenSSH History

Hide minor edits - Show changes to markup

January 06, 2007, at 01:44 AM by Dean Jackson -- Added notes on Method 1.
Added lines 21-27:

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).

November 29, 2006, at 01:23 PM by repvik --
Changed lines 43-44 from:

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

to:

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

June 15, 2006, at 02:20 PM by jcc --
Changed lines 13-14 from:
  1. Run 'ipkg install openssh-sshd'. (You may need -force-depends with this)
to:
  1. Run 'ipkg install openssh-sshd'. If it complains about a conflict with dropbear just use -force-depends.
Changed lines 33-34 from:
  1. ipkg install openssh (or just openssh_sshd). (You may need -force-depends with this)
to:
  1. ipkg install openssh (or just openssh_sshd). If it complains about a conflict with dropbear just use -force-depends.
June 10, 2006, at 01:05 AM by jcc --
Deleted line 14:
June 10, 2006, at 01:04 AM by jcc --
Changed lines 13-15 from:
  1. Run 'ipkg install openssh-sshd'.
    [Then you get a message saying you can't install openssh because it conflicts with dropbear. And then what do you do? (openslug) jcc- 6/8/2006]
to:
  1. Run 'ipkg install openssh-sshd'. (You may need -force-depends with this)
Changed lines 34-35 from:
  1. ipkg install openssh (or just openssh_sshd)
to:
  1. ipkg install openssh (or just openssh_sshd). (You may need -force-depends with this)
June 09, 2006, at 05:33 AM by jcc --
Changed lines 14-15 from:

[Then you get a message saying you can't install openssh because it conflicts with dropbear. And then what do you do? jcc- 6/8/2006]

to:

[Then you get a message saying you can't install openssh because it conflicts with dropbear. And then what do you do? (openslug) jcc- 6/8/2006]

June 09, 2006, at 05:30 AM by jcc --
Changed lines 14-15 from:
to:

[Then you get a message saying you can't install openssh because it conflicts with dropbear. And then what do you do? jcc- 6/8/2006]

November 04, 2005, at 08:01 AM by JimmyFergus -- request for clarification
Changed lines 41-43 from:

Voila! You're now running openssh sshd.

to:

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?)

August 13, 2005, at 03:53 PM by repvik --
Added lines 1-2:

Method 1:

Changed lines 19-41 from:
  1. Run 'ipkg remove dropbear'.
to:
  1. Run 'ipkg remove dropbear'.

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)
  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.

August 13, 2005, at 03:41 PM by repvik -- upgrade dropbear, otherwise u-a will break when you remove dropbear
Changed lines 1-7 from:

1. Change DROPBEAR_PORT parameter in /etc/init.d/dropbear from default 22 to other port number.
2. Reboot.
3. ssh to the new port number.
4. Run 'ipkg install openssh-sshd'.
5. Reboot.
6. ssh to port 22, you are now connected to OpenSSH? sshd.
7. Run 'ipkg remove dropbear'.

to:
  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'.
  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'.
August 10, 2005, at 01:33 PM by zin --
Changed lines 5-6 from:

5. Reboot. You are now connected to OpenSSH? sshd.
6. Run 'ipkg remove dropbear'.

to:

5. Reboot.
6. ssh to port 22, you are now connected to OpenSSH? sshd.
7. Run 'ipkg remove dropbear'.

August 10, 2005, at 01:30 PM by zin --
Added lines 1-6:

1. Change DROPBEAR_PORT parameter in /etc/init.d/dropbear from default 22 to other port number.
2. Reboot.
3. ssh to the new port number.
4. Run 'ipkg install openssh-sshd'.
5. Reboot. You are now connected to OpenSSH? sshd.
6. Run 'ipkg remove dropbear'.

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