stanlo
Search This Blog
Wednesday, October 23, 2019
Update remote /etc/hosts file using sudo
Sudo example
printf 'IP\tHost\n' | ssh -q host "sudo su - root -c 'cat - >> /etc/hosts'"
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)