![]() (NAS4 shuts down NAS5, and the poweroff command is passed, skipping both the admin password entry and the SUDO password entry process of ssh -p 32022 sudo "poweroff" As a result, more lines below should be added and visible. ![]() (Check that the settings are applied well) (Enter the command below in your admin account without any changes.) 1 line will be added to root's /etc/sudoers file to log in without entering a password.)Įcho -e "\n$USER ALL=(ALL) NOPASSWD: ALL\n" | sudo tee -a /etc/sudoers ssh will have both KEY files authorized_keys for connecting to PC->NAS4 and id_rsa.pub files for connecting to NAS4->NAS5.) (Similarly, adjust the permissions of the directories and files created on NAS5). (.ssh create directory and create authorized_keys file) (Drag the values scattered on the console and COPY the clipboard.) (How to install SSH-COPY-ID separately is left in the comments below.) (Synology does not have an SSH-COPY-ID utility built-in, so we made a separate copy of the contents into a vi editor.) The permission settings in the ssh folder are not required because they have already been adjusted above.) (Synology NAS4, as in Mac, generates Key files. After that, you have to move on without typing.)Ģ. ![]() ssh folder and contents.)Ĭhmod 600 /var/services/homes/admin/.ssh/authorized_keys (Copy the Key file and adjust the permissions of the admin folder and. (The two files have the same content, only different names.) ssh/authorized_keys file in the admin account on NAS 1 using the ssh-copy-id command. ssh/id_rsa.pub, a locally generated PUB KEY file, to the.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |