Remote Ssh Auto Login

简化流程

1
2
3
4
5
ssh-keygen 
# 一路回车
# 也可以 ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

ssh-copy-id USER@YOUR_SERVER

配置KeepAlive

vim ~/.ssh/config

1
2
3
Host *
    ServerAliveInterval 60
    ServerAliveCountMax 3

vim /etc/ssh/sshd_config

1
2
ClientAliveInterval 60
ClientAliveCountMax 3

tmux简单使用

1
apt install tmux -y

创建一个

tmux

命名创建

tmux new -s <session-name>

脱离

Ctrl + b 松开 然后 d

tmux detach

列出

tmux ls

附加

tmux attach 如果只有一个会话 tmux attach -t <session-name>/<session-id> 如果有多个

Licensed under CC BY-NC-SA 4.0
记录平时瞎折腾遇到的各种问题, 方便查找
使用 Hugo 构建
主题 Stack 3.29.0Jimmy 设计