I tried to run my jar file on server with following command
java -Jar file.jar
I often get write fialed: broken pipe if my client computer go sleep and resume later.
I want to solve this problem based on this page. But, the ssh_configure file has read only permission and I cannot save the following line in it.
Host *
ServerAliveInterval 120
I want to know how can I change the context of this file.
/etc/ssh/ssh_config
..create the file/home/user/.ssh/config
.. replace user with your actual username..it can be made short as~/.ssh/config
as~
means /home/user....now follow my answer and put the mentioned lines in the file.. – heemayl Jun 10 '15 at 18:24~
is/home/user
,.ssh
is a directory under~
,config
is a file under.ssh
..so the fil to modify is~/.ssh/config
....create the directory~/.ssh
first (if not exist already) bymkdir ~/.ssh
....then create the filetouch ~/.ssh/config
.....now open the file with your favorite text editor and add the lines i have mentioned in the answer.. – heemayl Jun 10 '15 at 19:37printf 'host *\n ServerAliveInterval 120\n' >>~/.ssh/config
....this will do..... – heemayl Jun 10 '15 at 20:03