Horje
close ssh connection mac Code Example
close ssh connection mac
[user]@[server]:~$ exit
logout
Connection to [IpAdress] closed
mac terminal close ssh connection
For keeping the connection alive, you can check in 
/etc/ssh/ssh_config the line where it says ServerAliveInterval, 
that tells you how often (in seconds) your computer is gonna 
send a null packet to keep the connection alive. If you have a 
0 in there that indicates that your computer is not trying to 
keep the connection alive (it is disabled), otherwise it tells 
you how often (in seconds) it is sending the aforementioned 
packet. Try putting in 120 or 240, if it is still killing your 
connection, you can go lower, maybe to 5, if with that number 
it doesn't happen, maybe it is your router who is dumping the 
connection to free memory.




Shell

Related
move commit from master to branch Code Example move commit from master to branch Code Example
Create a bash script that asks users to change permission Code Example Create a bash script that asks users to change permission Code Example
cut command in unix set diameter Code Example cut command in unix set diameter Code Example
ubuntu command line change line in file Code Example ubuntu command line change line in file Code Example
dolphin service menus Code Example dolphin service menus Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7