I know that I could create a ssh key file to connect to server via ssh without having to use the root password or some other user password
can you please post a link to steps or tell me how. thanks
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.