Voxel Custom firmware build for R7800 v. 1.0.2.82SF & v. 1.0.2.82.1SF & v. 1.0.2.82.2SF

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

kokishin

Regular Contributor
@Voxel

Just installed 82.2SF on my 7800.

Words cannot express how appreciative I am for your firmware updates.

I bought my 7800 in December 2018 based on @thiggins recommendation. I believe the 7800 had been in production for over two years when I bought it. I immediately switched to your firmware after the initial power up and never looked back.

Now it's 2021. I have zero urge to invest in a current router. I get plenty of performance and wi-fi coverage out of my 7800. More importantly, I get stability.

Many thanks!
 

Warlord1981

Occasional Visitor
Thank you for the upgrade @Voxel !

Can someone help me? I have lost SSH & WinSCP connection to the router.

I have saved the entire ssh folder containing id_dropbear, id_rsa, id_rsa.pub & privatekey.ppk when i created the ssh keys the first time, on my PC. I dont have the folder on the USB attached to the router.

How do I add them back to router and in which folder? I only currently have telnet access.
 
Last edited:

Warlord1981

Occasional Visitor
Thank you for the upgrade @Voxel !

Can someone help me? I have lost SSH & WinSCP connection to the router.

I have saved the entire ssh folder containing id_dropbear, id_rsa, id_rsa.pub & privatekey.ppk when i created the ssh keys the first time, on my PC. I dont have the folder on the USB attached to the router.

How do I add them back to router and in which folder? I only currently have telnet access.
I managed to copy them back to USB. Where should i copy them now and which exact files so ssh via putty can work again with saved session?
 
Last edited:

Voxel

Part of the Furniture
I have saved the entire ssh folder containing id_dropbear, id_rsa, id_rsa.pub & privatekey.ppk when i created the ssh keys the first time, on my PC. I dont have the folder on the USB attached to the router.

I managed to copy them back to USB. Where should i copy them now so ssh via putty can work again?

Listed set of your files is not enough to restore ssh access. Did not you backup your authorized_keys file? Exactly this file is needed to allow your access by ssh from putty (PC) to the router. It should be in the /root/.ssh directory i.e.

/root/.ssh/authorized_keys

and its permission should be set to 0600

chmod 0600 /root/.ssh/authorized_keys

If you did not backup it, you should be able to restore it manually from your putty key privatekey.ppk. Load it to puttygen.exe and you can see what to add into your /root/.ssh/authorized_keys using e.g. 'nano' text editor

nano /root/.ssh/authorized_keys

puttygen.exe displays what to paste into /root/.ssh/authorized_keys using COPY/PASTE

1613569479808.png


P.S.

It is rightly pointed by @HELLO_wORLD:


E.g. part of my /mnt/sda1/autorun/scripts/post-mount.sh:

Code:
#!/bin/sh
. . .
# Autorestore from backup if flashing new firmware is detected
if [ ! -f /root/.ssh/authorized_keys ]; then
    cd /
    tar xf /mnt/optware/backup/root.tar
    echo "Flashing new firmware is detected. Restore settings from archive." > /tmp/autorun.log
fi

I.e. it is better to make a backup storing whole /root directory (once) and to provide "autorestore" as in example above.

Voxel.
 
Last edited:

Warlord1981

Occasional Visitor
Listed set of your files is not enough to restore ssh access. Did not you backup your authorized_keys file? Exactly this file is needed to allow your access by ssh from putty (PC) to the router. It should be in the /root/.ssh directory i.e.

/root/.ssh/authorized_keys

and its permission should be set to 0600

chmod 0600 /root/.ssh/authorized_keys

If you did not backup it, you should be able to restore it manually from your putty key privatekey.ppk. Load it to puttygen.exe and you can see what to add into your /root/.ssh/authorized_keys using e.g. 'nano' text editor

nano /root/.ssh/authorized_keys

puttygen.exe displays what to paste into /root/.ssh/authorized_keys using COPY/PASTE

View attachment 30878

P.S.

It is rightly pointed by @HELLO_wORLD:


E.g. part of my /mnt/sda1/autorun/scripts/post-mount.sh:

Code:
#!/bin/sh
. . .
# Autorestore from backup if flashing new firmware is detected
if [ ! -f /root/.ssh/authorized_keys ]; then
    cd /
    tar xf /mnt/optware/backup/root.tar
    echo "Flashing new firmware is detected. Restore settings from archive." > /tmp/autorun.log
fi

I.e. it is better to make a backup storing whole /root directory (once) and to provide "autorestore" as in example above.

Voxel.

Dear @Voxel many thanks for your answer!

However when trying to edit /root/.ssh/authorized_keys I get an empty file which won't save no matter how I edit it. I copy-paste the key and pressing :wq! won't save anything. Any advise?

Capture.PNG
 

Voxel

Part of the Furniture
However when trying to edit /root/.ssh/authorized_keys I get an empty file which won't save no matter how I edit it. I copy-paste the key and pressing :wq! won't save anything. Any advise?

Run first:

Code:
mkdir /root/.ssh

This directory '/root/.ssh' just does not exist. So you cannot save your file in non-exsistent directory...

After that repeat your actions again.


Voxel.
 

Warlord1981

Occasional Visitor
Run first:

Code:
mkdir /root/.ssh

This directory '/root/.ssh' just does not exist. So you cannot save your file in non-exsistent directory...

After that repeat your actions again.


Voxel.
I have already tried it but with no avail:

Capture.PNG
 

Voxel

Part of the Furniture
Many thanks & very sorry for your trouble! SSH now works again. WinSCP still wont connect though:
No troubles for me, do not worry. We are here to help each other.

WinSCP: I am sorry, I do not use this program so I am not aware of its usage. Maybe it tries to access using password but not the key? Or wrong key? Or additional key you used in the past exactly for WinSCP and it should be added to /root/.ssh/authorized_keys...

Voxel.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top