This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ipaddress [2025/11/30 13:03] – zhangyk | ipaddress [2026/01/05 02:29] (current) – zhangyk | ||
|---|---|---|---|
| Line 75: | Line 75: | ||
| <fs x-large> <fc # | <fs x-large> <fc # | ||
| <fs large> | <fs large> | ||
| - | 101.6.122.12:22 \\ | + | 101.6.122.19:22 \\ |
| xrdp: not available</ | xrdp: not available</ | ||
| </ | </ | ||
| Line 119: | Line 119: | ||
| </ | </ | ||
| - | =================ssh configuration | + | =================Sync the file .ssh/config======================= |
| + | |||
| + | 1. Modify the file `~/ | ||
| < | < | ||
| < | < | ||
| Line 183: | Line 186: | ||
| Host white | Host white | ||
| User xuelab | User xuelab | ||
| - | Hostname 101.6.122.12 | + | Hostname 101.6.122.19 |
| Port 22 | Port 22 | ||
| Line 228: | Line 231: | ||
| ServerAliveInterval 300 | ServerAliveInterval 300 | ||
| ServerAliveCountMax 3 | ServerAliveCountMax 3 | ||
| + | </ | ||
| + | |||
| + | 2. Sync the file across all servers. | ||
| + | |||
| + | You can copy the contents below, paste it to a file `sync_ssh.sh` in directory `.ssh` and run it by typing "bash sync_ssh.sh" | ||
| + | < | ||
| + | for server in rainbow olive red blue green marine gold white black indigo orange violet yellow purple; | ||
| + | #for server in violet; | ||
| + | do | ||
| + | echo $server | ||
| + | #rsync -avz ~/.ssh/* $server: | ||
| + | rsync -avz ~/ | ||
| + | done | ||
| </ | </ | ||