WINSCP
ssh--no root, ssh key
==============
sudo visudo
youruser ALL=(ALL) NOPASSWD: ALL
====================
protocol scp
Advance ---> SCP/Shell ----> sudo su -
Authentication ------> private key location
======================
echo "# configuration here" | sudo tee /root/file.conf > /dev/null
sudo chmod 600 /root/file.conf
sudo chown root:root /root/file.conf
ไม่มีความคิดเห็น:
แสดงความคิดเห็น