Greetings,
I recently updated my NAS software to the latest and greatest. I have a server which has a CRON Job that automatically connected to the NAS using SSH. In the past when I have updated the software on the NAS I have had to process the authorization key. I have always followed the steps below. However for some reason this is no longer working. I need to manually enter the password when I SSH from the server to the NAS. Any help in resolving this issue would be appreciated. I have edited the SSH config file to allow users to SSH to the NAS, that is not a problem. I am just looking how to resolve the issue where when SSH from the server to the NAS I do not need to enter my password. The username and password are same on both devices.
Linux Server:
[user@Linux Server ~]# ssh-keygen -t rsa ( I skip this part since the file was created in the past)
#Press ENTER three times
[user@Linux Server ~]# ssh user@NASip -p 9222 "mkdir .ssh" (I skip this part since the directory already exists)
#Input password
[user@Linux Server ~]# scp -P 9222 ~/.ssh/id_rsa.pub user@NASip:.ssh/id_rsa.pub
#Input password
NAS:
user@NAS:~# touch /home/.ssh/authorized_keys
user@NAS:~# cat /home/.ssh/id_rsa.pub >> /home/.ssh/authorized_keys
Linux Server:
[user@Linux Server ~]# ssh root@NASip -p 9222
#Login without password
SSH from Server to F2-210
Re: SSH from Server to F2-210
I was able to resolve my issue. I went ahead and deleted the files from the .ssh directory on both servers, generated a new key, copied it over and it all that resolved my issue.