Hi guys,
I accidentally removed dropbear as file server and left it as "none". I figure out I now cannot connect to the dietpi command line config anymore.
Is there any way to fix this? I'm using Orange Pi Zero.
The web server and qbittorrent and all that is working normally.
Would VNC be an option?
Thanks in advance.
Connect without SSH? Topic is solved
Re: Connect without SSH?
Do you have local access to the device at all?
VNC would be a good option if it is installed
If you can VNC you should be able to open a gui to add programs such as synaptic or open a gui shell and manually run dietpi-config and re-add openssh package to the system
Otherwise you would have to side load it with
# apt install openssh-server
unfortunately if you remove your ability to get to a shell in the system and don't have physical access to the device...
dropbear is a light ssh server that only can do shell access, you can't SCP with dropbear you need openssh running for that
shell in a box is also another good idea, it's SSH thru a webgui
VNC would be a good option if it is installed
If you can VNC you should be able to open a gui to add programs such as synaptic or open a gui shell and manually run dietpi-config and re-add openssh package to the system
Otherwise you would have to side load it with
# apt install openssh-server
unfortunately if you remove your ability to get to a shell in the system and don't have physical access to the device...
dropbear is a light ssh server that only can do shell access, you can't SCP with dropbear you need openssh running for that
shell in a box is also another good idea, it's SSH thru a webgui
Re: Connect without SSH?
Hi warhawk,
Thanks. I do have access to the physical device, the SD card, etc.
It seems I don't have VNC server installed, I thought I had seen before that it was automatically installed during first boot.
Thanks.
Thanks. I do have access to the physical device, the SD card, etc.
It seems I don't have VNC server installed, I thought I had seen before that it was automatically installed during first boot.
Thanks.
Re: Connect without SSH?
If you have access to physical device..then plug in a kb and monitor and shell directly from the box...install vnc and openssh
Only issue you may have with VNC on RPiZero is it would be woefully slow and use ALOT of resources
All good
Only issue you may have with VNC on RPiZero is it would be woefully slow and use ALOT of resources
All good

Re: Connect without SSH?
could be hard to get a screen and keyboard connected as it's an Orange Pi Zero. I guess options are quite limited. 

Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Connect without SSH?
Indeed, and editing dietpi.txt on the SD card to switch to dropbear again?
Re: Connect without SSH?
this will have no effect. AUTO_SETUP_SSH_SERVER_INDEX is a DietPi-Automation setting and will be applied on first boot of DietPi only, once.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Connect without SSH?
Time to format then :/
Thanks for the answers.
Edit: let's say I connect a keyboard, which is the only thing I can connect. Would there then be any keyboard shortcuts I could use in order to get to the command prompt and activate ssh?
In windows I guess it'd be Win key + R and then CMD. Here would it be something similar?
Thanks for the answers.
Edit: let's say I connect a keyboard, which is the only thing I can connect. Would there then be any keyboard shortcuts I could use in order to get to the command prompt and activate ssh?
In windows I guess it'd be Win key + R and then CMD. Here would it be something similar?
Re: Connect without SSH?
in theory yes it would be possible to typ some commands blind.
You would need to login first with root user and password. Following should work
Important: be sure on the used keyboard layout. If not changed, DietPi is using English keyboard. Because of the hyphen in dietpi-software
if all goes well you should be able to connect via SSH, even without reboot.
You would need to login first with root user and password. Following should work
Code: Select all
root
<password>
# wait a few seconds to be sure to get the command line
dietpi-software install 104
# wait for 10-15 minutes. Not sure if you have an activity LED
if all goes well you should be able to connect via SSH, even without reboot.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Connect without SSH?
Thanks again Joulinar, do I then connect the keyboard and immediately type root? Or is there any keyboard shortcut I need to press before typing root in order to get to the command prompt?