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/07/09 13:18] zhangykipaddress [2026/01/05 02:29] (current) zhangyk
Line 5: Line 5:
 Extranet IP: 101.6.120.23:180\\ Extranet IP: 101.6.120.23:180\\
 Intranet IP: 192.168.0.10:22\\ Intranet IP: 192.168.0.10:22\\
-xrdp: Not provided for security issue\\ 
 </fs> </fs>
 </WRAP> </WRAP>
Line 16: Line 15:
 </fs> </fs>
 </WRAP> </WRAP>
- 
 </WRAP> </WRAP>
  
Line 48: 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 58: Line 56:
 <WRAP group> <WRAP group>
 <WRAP half column round box> <WRAP half column round box>
-<fs x-large> <fc #ffffff>White</fc></fs> \\+<fs x-large> <fc #ffd700>Gold</fc></fs> \\
 <fs large> <fs large>
-101.6.122.12:22 (xrdp not available)</fs>+101.6.121.48:22\\ 
 +xrdp: 101.6.121.48:22:3389 
 +</fs>
 </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.167:22 (xrdp not available)</fs>+101.6.121.111:22 \\ 
 +xrdpnot available</fs>
 </WRAP> </WRAP>
 </WRAP> </WRAP>
Line 72: Line 73:
 <WRAP group> <WRAP group>
 <WRAP half column round box> <WRAP half column round box>
-<fs x-large> <fc #ffd700>Gold</fc></fs> \\+<fs x-large> <fc #ffffff>White</fc></fs> \\
 <fs large> <fs large>
-101.6.121.48:22 (xrdp)</fs>+101.6.122.19:22 \\ 
 +xrdp: not available</fs>
 </WRAP> </WRAP>
  
Line 80: Line 82:
 <fs x-large> <fc #4B0082>Indigo</fc></fs> \\ <fs x-large> <fc #4B0082>Indigo</fc></fs> \\
 <fs large> <fs large>
-101.6.121.208:22 (xrdp)</fs>+101.6.121.208:22 \\ 
 +xrdp: 101.6.121.208:3389</fs>
 </WRAP> </WRAP>
 </WRAP> </WRAP>
Line 86: Line 89:
 <WRAP group> <WRAP group>
 <WRAP half column round box> <WRAP half column round box>
-<fs x-large><fc #FFFF00>Yellow</fc> </fs>\\ +<fs x-large><fc #ffa500>Orange</fc> </fs>\\ 
-<fs large>166.111.157.15:22 (xrdp)</fs> \\+<fs large>101.6.121.89:22\\ 
 +xrdp: 101.6.121.145:3389</fs> \\
 </WRAP> </WRAP>
  
 <WRAP half column round box> <WRAP half column round box>
-<fs x-large><fc #800080>Purple</fc></fs>\\ +<fs x-large><fc #ee82ee>Violet</fc> </fs>\\ 
-<fs large>166.111.157.57:22 (xrdp)</fs> \\+<fs large>101.6.121.38:22\\ 
 +xrdp: 101.6.121.145:3389</fs> \\ 
 +</WRAP>
 </WRAP> </WRAP>
  
 <WRAP group> <WRAP group>
 <WRAP half column round box> <WRAP half column round box>
-<fs x-large><fc #ee82ee>Violet</fc> </fs>\\ +<fs x-large><fc #FFFF00>Yellow</fc> </fs>\\ 
-<fs large>101.6.121.145:22 (xrdp)</fs> \\+<fs large>166.111.157.15:22\\ 
 +xrdp: 166.111.157.15:3389</fs> \\
 </WRAP> </WRAP>
  
-=================ssh configuration file could be like this=======================+<WRAP half column round box> 
 +<fs x-large><fc #800080>Purple</fc></fs>\\ 
 +<fs large>166.111.157.57:22\\ 
 +xrdp: 166.111.157.57:3389</fs> \\ 
 +</WRAP> 
 +</WRAP> 
 + 
 +<code> 
 +Some ports, such as 22 and 3389, can be omitted, since they are set by default. 
 +</code> 
 + 
 +=================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 xolive+Host marine
         User xuelab         User xuelab
         Hostname 101.6.120.23         Hostname 101.6.120.23
-        Port 186+        Port 184 
 +Host imarine 
 +        User xuelab 
 +        Hostname 192.168.0.14 
 +        Port 22 
 Host olive Host olive
 +        User xuelab
 +        Hostname 101.6.120.23
 +        Port 186
 +Host iolive
         User xuelab         User xuelab
         Hostname 192.168.0.16         Hostname 192.168.0.16
 +        Port 22
  
-Host irainbow 
-        User xuelab 
-        Hostname 192.168.0.10 
 Host rainbow Host rainbow
         User xuelab         User xuelab
         Hostname 101.6.120.23         Hostname 101.6.120.23
         Port 180         Port 180
 +Host irainbow
 +        User xuelab
 +        Hostname 192.168.0.10
 +        Port 22
  
-Host yellow+Host red
         User xuelab         User xuelab
-        Hostname 166.111.157.15+        Hostname 101.6.120.23 
 +        Port 181 
 +Host ired 
 +        User xuelab 
 +        Hostname 192.168.0.11 
 +        Port 22
  
-Host purple+Host blue
         User xuelab         User xuelab
-        Hostname 166.111.157.57+        Hostname 101.6.120.23 
 +        Port 182 
 +Host iblue 
 +        User xuelab 
 +        Hostname 192.168.0.12 
 +        Port 22
  
-Host indigo+Host green
         User xuelab         User xuelab
-        Hostname 101.6.121.208+        Hostname 101.6.120.23 
 +        Port 183 
 +Host igreen 
 +        User xuelab 
 +        Hostname 192.168.0.13 
 +        Port 22
  
 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.167+        Hostname 101.6.121.111 
 +        Port 22
  
-Host red+Host indigo
         User xuelab         User xuelab
-        Hostname 192.168.0.11 +        Hostname 101.6.121.208 
-Host xred +        Port 22
-        User xuelab +
-        Hostname 101.6.120.23 +
-        Port 181+
  
-Host blue+Host orange
         User xuelab         User xuelab
-        Hostname 192.168.0.12 +        Hostname 101.6.121.89 
-Host xblue +        Port 22
-        User xuelab +
-        Hostname 101.6.120.23 +
-        Port 182+
  
-Host green+Host violet
         User xuelab         User xuelab
-        Hostname 192.168.0.13 +        Hostname 101.6.121.38 
-Host xgreen +        Port 22
-        User xuelab +
-        Hostname 101.6.120.23 +
-        Port 183+
  
-Host orange +Host yellow
-        User xuelab +
-        Hostname 192.168.0.14 +
-Host xorange+
         User xuelab         User xuelab
-        Hostname 101.6.120.23 +        Hostname 166.111.157.15 
-        Port 184+        Port 22
  
-Host violet+Host purple
         User xuelab         User xuelab
-        Hostname 101.6.121.145+        Hostname 166.111.157.57 
 +        Port 22
  
 Host azure Host azure
-        User nmrsu 
-        Hostname 192.168.0.18 
-Host eazure 
         User nmrsu         User nmrsu
         Hostname 101.6.120.23         Hostname 101.6.120.23
         Port 188         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.1752067133.txt.gz · Last modified: 2025/07/09 13:18 by zhangyk