[HOW-TO] Install Optware/OpenSSH as default SSHd Server

Discussion on setting up QNAP NAS products.
Post Reply
ilivlad
New here
Posts: 8
Joined: Mon May 28, 2012 10:15 am

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by ilivlad »

Thanks, I figure it out.
Something was wrong with my client keys, that was the problem, i redid them and now Im logging in .
Although I had to set Strict mode to no, in sshd_config and enable Root login, RSA and pubkey auth.

I also replaced Qnapware with Entware-NG, working fine now.

Thanks again for your effort and for Entware :)
tiger015
New here
Posts: 2
Joined: Sat Mar 05, 2016 12:10 am

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by tiger015 »

Hi, I am a baby beginner with a new TS 453 pro and I have installed qnapware. However, I am unable to start openssh. Following, the instructions in the first message I am able to login to ssh using another port. Then I am able to install openssh using
#opkg install openssh-server
But then am I supposed to do opt/sbin/sshd 2>/dev/null. If I do it and try to login using ssh from another terminal, it states connection refused on port 22. I also tried Apps/opt/sbin/sshd 2>/dev/null, and the same result. Please help.
louiscar
Easy as a breeze
Posts: 265
Joined: Mon Aug 10, 2015 4:32 am

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by louiscar »

ilivlad wrote:Thanks, I figure it out.
I also replaced Qnapware with Entware-NG, working fine now.

Thanks again for your effort and for Entware :)
I was thinking about doing the same. Did you have any problems replacing Qnapware ?
Model : TS-453 Pro
Firmware : 5.0.0.1828
4x WD RED 3TB - Raid 5
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by schumaku »

Use Entware-ng - anything esle is no longer maintained. Avoid _replacing_ the QNAP sshd (as per the subject) - run it on a dedicated port.
ts-269pro wrote:A short question from a QNAP and Linux newbie.
Why do you need another sshd then?
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by schumaku »

With QTS 4.2.1 it seems to be possible to add users (not groups, tough) to the QNAP default sshd configuration FWIW.
Berzerker
New here
Posts: 2
Joined: Tue Feb 24, 2015 9:12 am

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by Berzerker »

I'm having an issue when logging in.

I went through the entire process, started sshd via /opt/sbin, but when I try to log in with a password, I just get permission denied errors until it kicks me out after the 3rd try. Is there any setting I'm supposed to change? No one else seems to be having this issue.

Thanks.
webrat
New here
Posts: 3
Joined: Thu Dec 15, 2011 2:45 pm

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by webrat »

Great article...
webrat
New here
Posts: 3
Joined: Thu Dec 15, 2011 2:45 pm

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by webrat »

@pwilson: FYI: I follwed the guideline and pathed the script as described on http://wiki.qnap.com/wiki/Install_Optwa ... on_startup

It works perfectly.

Thanks a lot.
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by schumaku »

@all:

pwilson does RIP ...

Optware is obsolete and it was replaced by Entware-NG, see the related subforum.
jamestn
New here
Posts: 4
Joined: Tue Jul 26, 2016 11:17 am

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by jamestn »

I'm trying to get OpenSSH to work on TS453 Pro, firmware 4.2 (4 disks). My goal is to be able to SFTP into the machine when I'm away from home. Any system access will be done at home through the local network (GUI or command line). I'd like to have a couple of users be able to SFTP in. Ideally I'd want to lock Admin out from non-local SFTP (it seems more secure this way?). I also like Patrick's approach of keeping the original daemon and 'adding to it'.

There is the aspiration...

I've started with Patrick's guide (thanks). While I seemed to get a successful install (following the wiki-how with a manual install) on Optware I could not then run the ipkg command. First, question - should I uninstall this - does it matter to leave it?

Given the suggestions to Qnapware as support for opkg I then followed:
https://wiki.qnap.com/wiki/Replace_ssh_ ... re_OpenSSH

I get a number of errors when I start the .sh file (the service?):
First, the opensshd folder is not found
Second, the sshd.config file is not found either
Third, when I test a connection (SSH using Putty) I get 'connection refused'.

Using opkg I installed the openssh-server to root (it seems to be installed since an attempt to update it tells me I've got the most recent version). Is part of my problem that I'm installed at root? (since the .sh points toward the Aps directory)
In the 'recipe' from wiki there is not configuration of the sshd.config - I'm wondering if I'm missing something here, too.

Any help would be greatly appreciated! (apologies for not being more technical)
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by schumaku »

jamestn wrote: While I seemed to get a successful install (following the wiki-how with a manual install) on Optware I could not then run the ipkg command.
The commands are not added to the path dynamically, you might have to re-login.
jamestn wrote:Given the suggestions to Qnapware as support for opkg I then followed: ...
The QNAPedia entry is obsolete, and is not applicable to the Entware-NG environment, which has it's own start-up init.d environment, it's own etc folder.
jamestn
New here
Posts: 4
Joined: Tue Jul 26, 2016 11:17 am

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by jamestn »

The QNAPedia entry reports a test on a TS453 pro running the 4.2.0 version of the firmware so I'm struggling to see it as obsolete. All the reading I've done so far shows optware and entware as obsolete (and unsupported).

I am trying to work out why I get the connection refused. Also why I'm getting errors on starting the .sh file.
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by schumaku »

jamestn wrote:The QNAPedia entry reports a test on a TS453 pro running the 4.2.0 version of the firmware so I'm struggling to see it as obsolete. All the reading I've done so far shows optware and entware as obsolete (and unsupported).
It's 100% based on obsolete IPKG Optware.
jamestn wrote:All the reading I've done so far shows optware and entware as obsolete (and unsupported).
Entware-NG is current, community supplied, and not supported by QNAP of course.
jamestn wrote:I am trying to work out why I get the connection refused. Also why I'm getting errors on starting the .sh file.
"the .sh" has no relevance to the Entware-NG environment.
d3763
Starting out
Posts: 11
Joined: Sat Aug 08, 2015 6:08 am

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by d3763 »

Is there an updated tutorial for how to do this with Entware-ng and OpenSSH-server?
louiscar
Easy as a breeze
Posts: 265
Joined: Mon Aug 10, 2015 4:32 am

Re: [HOW-TO] Install Optware/OpenSSH as default SSHd Server

Post by louiscar »

Would love to see one too
Model : TS-453 Pro
Firmware : 5.0.0.1828
4x WD RED 3TB - Raid 5
Post Reply

Return to “Turbo Station Installation & Setup”