Replace ssh with Qnapware OpenSSH: Difference between revisions

From QNAPedia
Jump to navigation Jump to search
Glenn (talk | contribs)
No edit summary
Line 10: Line 10:
#*echo sshd:x:74:>>/etc/group
#*echo sshd:x:74:>>/etc/group
#*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]]
[[Category:SSH]]

Revision as of 06:32, 30 December 2015

Note: Work in progress.

Recommend changing QNAP system sshd to use any port other than 22.  (Like 2222 or something)

  1. Install Entware for opkg support (Note that this replaces the older non-supported as of Dec-2014 Optware)
  2. opkg install openssh-server
  3. ssh-keygen -t rsa -f ssh_host_rsa_key
  4. ssh-keygen -t dsa -f ssh_host_dsa_key
  5. 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
  6. .