User Tools

Site Tools


ipaddress

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ipaddress [2025/11/30 13:03] zhangykipaddress [2026/01/05 02:29] (current) zhangyk
Line 75: Line 75:
 <fs x-large> <fc #ffffff>White</fc></fs> \\ <fs x-large> <fc #ffffff>White</fc></fs> \\
 <fs large> <fs large>
-101.6.122.12:22 \\+101.6.122.19:22 \\
 xrdp: not available</fs> xrdp: not available</fs>
 </WRAP> </WRAP>
Line 119: Line 119:
 </code> </code>
  
-=================ssh configuration file could be like this=======================+=================Sync the file .ssh/config======================= 
 + 
 +1. Modify the file `~/.ssh/config`. For the first time, change `User xuelab` to your real user name, such as `User zhangyk`. 
 <code>vi ~/.ssh/config</code> <code>vi ~/.ssh/config</code>
 <code> <code>
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
 +</code>
 +
 +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".
 +<code>
 +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:~/.ssh
 +        rsync -avz ~/.ssh/config $server:~/.ssh
 +done
 </code> </code>
  
ipaddress.1764507817.txt.gz · Last modified: 2025/11/30 13:03 by zhangyk