I am following the qnap wiki guide with no success. I will provide a brief description of my environment along with what I am doing. If you see anything that seems wrong without further troubleshooting, please let me know, thanks!
QNAP 453Be Firmware version 4.4.1.1216 Build 20200214
1. I am doing everything from the wiki in MobaXTerm on a Windows machine.
2. My Windows machine is using OpenVPN and connected to my QNAP Server using QVPN
3. My Windows machine Timezone is set to Eastern, while my QNAP is set to Pacific Timezone. (Not sure if this could cause an issue with key generation)
4. I've replaced the username I'm trying to setup to be <user> in my copy/paste results below
From the following link:
https://cinhtau.net/2016/02/03/use-ssh- ... mobaxterm/
-- I have set the persistent home directory
-- Set my SSH setting to use the private key that I generated
1. I am able to generate the ssh key files and add a passphrase in a MobaXTerm local terminal. It places the files within my Windows home directory.
2. The following command does not work (does not connect to my QNAP, does not ask for password):
Code: Select all
# scp id_rsa.pub admin@ClientIPAddress /etc/config/ssh/
4. I navigate to /etc/config/ssh/
5. I drag/drop the id_rsa.pub file to this directory.
6. I run the following cmd as admin
Code: Select all
# cat id_rsa.pub >> authorized_keys
7. I also tried running
Code: Select all
# chown admin.administrators /mnt/HDA_ROOT/.config
file/directory chmod cmd
authorized_keys 600
ssh 700
config 711 (also tried 755 per viewtopic.php?t=132424)
Code: Select all
[~] # ls -ld /share/homes/<user> /share/homes/<user>/.ssh /share/homes/<user>/.ssh/authorized_keys
drwx--x--x 4 <user> everyone 4096 2020-04-23 12:26 /share/homes/<user>/
drwx------ 2 <user> everyone 4096 2020-04-23 14:45 /share/homes/<user>/.ssh/
-rw------- 1 admin administrators 392 2020-04-23 14:45 /share/homes/<user>/.ssh/authorized_keys
Code: Select all
[/etc/config/ssh] # ls -ltr
total 32
lrwxrwxrwx 1 admin administrators 20 2019-04-06 04:39 id_rsa.pub -> ssh_host_rsa_key.pub
lrwxrwxrwx 1 admin administrators 16 2019-04-06 04:39 id_rsa -> ssh_host_rsa_key
-rw------- 1 admin administrators 1675 2019-04-06 04:43 ssh_host_rsa_key
-rw-r--r-- 1 admin administrators 605 2019-04-06 04:43 ssh_host_dsa_key.pub
-rw------- 1 admin administrators 672 2019-04-06 04:43 ssh_host_dsa_key
-rw-r--r-- 1 admin administrators 29 2020-04-23 09:26 sshd_user_config
drwxr-xr-x 2 admin administrators 4096 2020-04-23 12:47 bkup/
-rw-r--r-- 1 admin administrators 396 2020-04-23 13:26 known_hosts
-rw-r--r-- 1 admin administrators 392 2020-04-23 13:40 ssh_host_rsa_key.pub
-rw------- 1 admin administrators 392 2020-04-23 13:44 authorized_keys
NOTE: It seems to accept the correct passphrase (I tried wrong one on purpose), but says key is refused.
Code: Select all
Passphrase for OpenSSH private key:
Wrong passphrase
Passphrase for OpenSSH private key:
Server refused our key
<user>@IPADDRESS's password: