Posts

Showing posts with the label unix

Converting linux unix command line line ending in files

Windows use: \r\n Linux / Unix use: \n You can use dos2unix command line to convert line ending in files https://stackoverflow.com/questions/3891076/how-to-convert-windows-end-of-line-in-unix-end-of-line-cr-lf-to-lf

Prevent ssh auto disconnect after some time

Prevent ssh auto disconnect after some time On the server side: nano /etc/ssh/sshd_config Add or modify the lines: ClientAliveInterval 30 ClientAliveCountMax 5 You will need to restart sshd: /etc/init.d/ssh restart On the client side: nano /etc/ssh/ssh_config Add or modify the lines: ServerAliveInterval 30 ServerAliveCountMax 5