然後再將該檔案拷備到IBT-1283,如此就能從qnap免金鑰登入到IBT-1283
scp root@(ds_IP):/(id_rsa.pub路徑)/id_rsa.pub /tmp
scp root@(ds_IP):/(id_rsa.pub路徑)/id_rsa.pub /tmp(IBT_1283裡的暫存路徑)
cd ~/.ssh
cat /(拷備到IBT_1283的id_rsa.pub路徑)/id_rsa.pub >>authorized_keys
chmod 400 authorized_keys
rm -f /tmp/id_rsa.pub
沒有留言:
張貼留言