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'"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment