Broken pipe issue
we simply have to refresh the connection every X seconds on a MAC, like so:
New SSH user with no password entry
Disable roor account
It's a good practice to add regular users to the system and disable the root access asap,
click here for more info.