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/18 02:33] zhangykipaddress [2026/01/05 02:29] (current) zhangyk
Line 46: Line 46:
  
 <WRAP half column round box> <WRAP half column round box>
-<fs x-large><fc #FFA500>Orange</fc> </fs>\\+<fs x-large><fc #01386A>Marine</fc> </fs>\\
 <fs large> <fs large>
 Extranet IP: 101.6.120.23:184\\ Extranet IP: 101.6.120.23:184\\
 Intranet IP: 192.168.0.14:22\\ Intranet IP: 192.168.0.14:22\\
-xrdp: 101.6.120.23:43389 or 192.168.0.14</fs>+xrdp: not available</fs>
 </WRAP> </WRAP>
 </WRAP> </WRAP>
Line 66: Line 66:
 <fs x-large> <fc #000000>Black</fc></fs> \\ <fs x-large> <fc #000000>Black</fc></fs> \\
 <fs large> <fs large>
-101.6.121.253:22 \\+101.6.121.111:22 \\
 xrdp: not available</fs> xrdp: not available</fs>
 </WRAP> </WRAP>
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 88: Line 88:
  
 <WRAP group> <WRAP group>
 +<WRAP half column round box>
 +<fs x-large><fc #ffa500>Orange</fc> </fs>\\
 +<fs large>101.6.121.89:22\\
 +xrdp: 101.6.121.145:3389</fs> \\
 +</WRAP>
 +
 <WRAP half column round box> <WRAP half column round box>
 <fs x-large><fc #ee82ee>Violet</fc> </fs>\\ <fs x-large><fc #ee82ee>Violet</fc> </fs>\\
-<fs large>101.6.121.145:22\\+<fs large>101.6.121.38:22\\
 xrdp: 101.6.121.145:3389</fs> \\ xrdp: 101.6.121.145:3389</fs> \\
 </WRAP> </WRAP>
Line 113: 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>
 +Host marine
 +        User xuelab
 +        Hostname 101.6.120.23
 +        Port 184
 +Host imarine
 +        User xuelab
 +        Hostname 192.168.0.14
 +        Port 22
 +
 Host olive Host olive
         User xuelab         User xuelab
Line 123: Line 141:
         User xuelab         User xuelab
         Hostname 192.168.0.16         Hostname 192.168.0.16
 +        Port 22
  
 Host rainbow Host rainbow
Line 131: Line 150:
         User xuelab         User xuelab
         Hostname 192.168.0.10         Hostname 192.168.0.10
 +        Port 22
  
 Host red Host red
Line 139: Line 159:
         User xuelab         User xuelab
         Hostname 192.168.0.11         Hostname 192.168.0.11
 +        Port 22
  
 Host blue Host blue
Line 147: Line 168:
         User xuelab         User xuelab
         Hostname 192.168.0.12         Hostname 192.168.0.12
 +        Port 22
  
 Host green Host green
Line 155: Line 177:
         User xuelab         User xuelab
         Hostname 192.168.0.13         Hostname 192.168.0.13
- +        Port 22
-Host orange +
-        User xuelab +
-        Hostname 101.6.120.23 +
-        Port 184 +
-Host iorange +
-        User xuelab +
-        Hostname 192.168.0.14+
  
 Host gold Host gold
         User xuelab         User xuelab
         Hostname 101.6.121.48         Hostname 101.6.121.48
 +        Port 22
  
 Host white Host white
         User xuelab         User xuelab
-        Hostname 101.6.122.12+        Hostname 101.6.122.19 
 +        Port 22
  
 Host black Host black
         User xuelab         User xuelab
-        Hostname 101.6.121.253+        Hostname 101.6.121.111 
 +        Port 22
  
 Host indigo Host indigo
         User xuelab         User xuelab
         Hostname 101.6.121.208         Hostname 101.6.121.208
 +        Port 22
 +
 +Host orange
 +        User xuelab
 +        Hostname 101.6.121.89
 +        Port 22
  
 Host violet Host violet
         User xuelab         User xuelab
-        Hostname 101.6.121.145+        Hostname 101.6.121.38 
 +        Port 22
  
 Host yellow Host yellow
         User xuelab         User xuelab
         Hostname 166.111.157.15         Hostname 166.111.157.15
 +        Port 22
  
 Host purple Host purple
         User xuelab         User xuelab
         Hostname 166.111.157.57         Hostname 166.111.157.57
 +        Port 22
 +
 +Host azure
 +        User nmrsu
 +        Hostname 101.6.120.23
 +        Port 188
 +Host iazure
 +        User nmrsu
 +        Hostname 192.168.0.18
 +        Port 22
  
 Host * Host *
         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.1763433212.txt.gz · Last modified: 2025/11/18 02:33 by zhangyk