Host <alias_name> # Your preferred alias for this connection
HostName <host_ip> # Actual hostname or IP address
User <user_name> # Username for authentication
IdentityFile <private_key_path> # Path to private key file
Port 22 # Optional: SSH port (default is 22)
服务器使用 zellij 防止 ssh 断开而导致耗时比较长的工作中断
zellij 的基本用法:
1
2
3
4
5
6
7
8
9
10
11
# New a sessionzellij
# ORzellij new -n mysession
# Detach session`C-O + D`: detach current session
# Attach sessionzellij list-sessions
zellij attach <the_session>