Difference between revisions of "Replace ssh with Qnapware OpenSSH"
Jump to navigation
Jump to search
m (Enorl76 moved page Replace ssh with Entware OpenSSH to Replace ssh with Qnapware OpenSSH: entware vs qnapware) |
m (+Category:SSH) |
||
Line 11: | Line 11: | ||
#*echo sshd:x:74:74:Priviledge-separated SSH:/var/empty/sshd:/sbin/nologin>>/etc/passwd | #*echo sshd:x:74:74:Priviledge-separated SSH:/var/empty/sshd:/sbin/nologin>>/etc/passwd | ||
# | # | ||
+ | |||
+ | [[Category:SSH]] |
Revision as of 10:01, 26 October 2015
Note: Work in progress.
Recommend changing QNAP system sshd to use any port other than 22. (Like 2222 or something)
- Install Entware for opkg support (Note that this replaces the older non-supported as of Dec-2014 Optware)
- opkg install openssh-server
- ssh-keygen -t rsa -f ssh_host_rsa_key
- ssh-keygen -t dsa -f ssh_host_dsa_key
- Add sshd user to /etc/passwd and sshd group to /etc/group
- echo sshd:x:74:>>/etc/group
- echo sshd:x:74:74:Priviledge-separated SSH:/var/empty/sshd:/sbin/nologin>>/etc/passwd