Welcome, Guest. Please login or register.
Did you miss your activation email?
Wednesday 20 November 2024, 10:28:43 am

Login with username, password and session length

Download the latest community FREE version  HERE
14258 Posts in 4377 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Enable SSH from CLI
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Enable SSH from CLI  (Read 22807 times)
derick@replic8.co.bw
Full Member
***
Offline Offline

Posts: 13


« on: Wednesday 27 May 2015, 11:50:16 pm »

Hi all


Bit stuck. We've got an EFW community server that isn't too healthy. It seems to have some sort of problem with its SSL certificates or something as we cannot access its web console at all. The plan was instead of faffing about trying to fix the SSL issue, to just export its config, get a new server up and running and import the configs over.

Problem though. The sick EFW does not have SSH enabled, and I cannot figure out how to enable it directly from the admin console. This being the case, I have no idea how I'm going to copy over the backed up config without being able to use something like WinSCP...

Is there any way to enable SSH without having access to the web console? I have physical access to the server, but that's not going to help me much in this case.
Logged
mmiat
Sr. Member
****
Offline Offline

Gender: Male
Posts: 236


WWW
« Reply #1 on: Thursday 28 May 2015, 07:56:21 pm »

...
Logged

---------------------
IT Consultant
www.fsw.it
Hardware & Software
mmiat
Sr. Member
****
Offline Offline

Gender: Male
Posts: 236


WWW
« Reply #2 on: Thursday 28 May 2015, 07:59:07 pm »

try to change /var/efw/remote/settings:

Code:
ENABLE_SSH_PROTOCOL1=
ENABLE_SSH_PASSWORDS=on
ENABLE_SSH_PORTFW=
submit=Salva
perform_switch=1
__CGI__=CGI=HASH(0x833b0f8)
ENABLE_SSH_KEYS=on
ENABLE_SSH=on

and reboot
Logged

---------------------
IT Consultant
www.fsw.it
Hardware & Software
mmiat
Sr. Member
****
Offline Offline

Gender: Male
Posts: 236


WWW
« Reply #3 on: Thursday 28 May 2015, 08:02:39 pm »

argh, I can't edit my post

you don't need to reboot, maybe only start/restart service

or you can use a usb key to save all, I think efw can mount it
Logged

---------------------
IT Consultant
www.fsw.it
Hardware & Software
derick@replic8.co.bw
Full Member
***
Offline Offline

Posts: 13


« Reply #4 on: Thursday 28 May 2015, 11:30:50 pm »

Hi mmiat


Thanks for the help so far, appreciate it Smiley

I'm going to give your suggestions a go quick, hopefully that does the trick.


Cheers
Logged
derick@replic8.co.bw
Full Member
***
Offline Offline

Posts: 13


« Reply #5 on: Friday 29 May 2015, 07:49:30 pm »

Just gave this a quick test using a VMWare Workstation VM, no file called /var/efw/remote/settings. It's possible that it might just be my version though, tested the latest EFW Community edition.

The client site uses 2.5.something though, so it might work. Going to try plugging in a USB as well to see if that works.
Logged
derick@replic8.co.bw
Full Member
***
Offline Offline

Posts: 13


« Reply #6 on: Saturday 30 May 2015, 12:00:36 am »

Thanks mmiat, looks like the config file edit does the trick.

In my case though, I had to create the file from scratch, reboot the server, but then also start SSH by doing /etc/init.d/sshd start.

After that, SSH login works Smiley
Logged
mmiat
Sr. Member
****
Offline Offline

Gender: Male
Posts: 236


WWW
« Reply #7 on: Monday 08 June 2015, 11:49:57 pm »

well done! Wink
Logged

---------------------
IT Consultant
www.fsw.it
Hardware & Software
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.094 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com