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:
Is there a better guide to creating my ssh config so I can have my client ssh keep alive the connection to the server?