I am trying to keep connections alive to my university server. It keeps disconnecting after 2-3 minutes of inactivity and it gets very frustrating to keep relogging in. I tried many things online but I am unable to edit any of the files.
I have tried following instructions here: https://www.a2hosting.com/kb/getting-started-guide/accessing-your-account/keeping-ssh-connections-alive
Perhaps the problem is that I dont have a ~/.ssh/config file - changes I try to make to the below given files, I keep getting this:
- -- INSERT -- W10: Warning: Changing a readonly file
- E45: 'readonly' option is set (add ! to override)
- "sshd_config" E212: Can't open file for writing
When I try to create it (copy and paste the command you use here), it says this:
mkdir: .ssh: Permission denied
I am happy to answer any further questions you may have :)
This is what my /etc/ssh looks like:
This is what ssh_config looks like:

and this is what my sshd_config looks like:

Is there a better guide to creating my ssh config so I can have my client ssh keep alive the connection to the server?

mkdir -p ~/.sshshould make that directory - can you edit out that error or edit in how you are creating your config file? Also - I am a little perplexed why your system didn’t make that directory when you had your first successful ssh out to make known_hosts file. - perhaps you have a non-standard user folder or have some other breakage – bmike Jun 06 '20 at 18:59