# Linux

## SSH

### Keep Alive

Refer: <https://patrickmn.com/aside/how-to-keep-alive-ssh-sessions/>

On the server:

```
# /etc/ssh/sshd_config
ClientAliveInterval 60
```

Or on client

```
# ~/.ssh/config
Host *
  ServerAliveInterval 15
```

### Create Key

```
KEY_NAME=gregs-key
ssh-keygen -t rsa -b 4096 -C "$KEY_NAME"
```

## Change Default Terminal (Ubuntu/PopOS)

Refer: <https://techienotes.blog/2018/05/05/how-to-change-default-terminal-emulator-in-ubuntu-18-04/>

```
sudo update-alternatives --config x-terminal-emulator
```

## Mount OneDrive

<https://www.linuxuprising.com/2018/07/how-to-mount-onedrive-in-linux-using.html>

```
curl https://rclone.org/install.sh | sudo bash
```
