How I can edit etc folder with sudo user

Solution 1:

Often on my local or when work on other computer(s) use SSH to login, then do my editing with nano.

GNU nano is a small and friendly text editor. It aims to emulate
the Pico text editor while also offering a few enhancements.

Believe is recommended for SSH to NOT enable root access from other machines, rather USERs login as themselves then use SUDO when required for root permission on other machines.

.