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/08/30 03:21] 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.167:22 (xrdp not available)</fs>+101.6.121.111:22 \\ 
 +xrdpnot available</fs>
 </WRAP> </WRAP>
 </WRAP> </WRAP>
Line 74: 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 (xrdp not available)</fs>+101.6.122.19:22 \\ 
 +xrdpnot available</fs>
 </WRAP> </WRAP>
  
Line 86: 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 111: 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 zhangyk+        User xuelab
         Hostname 101.6.120.23         Hostname 101.6.120.23
         Port 186         Port 186
 Host iolive Host iolive
-        User zhangyk+        User xuelab
         Hostname 192.168.0.16         Hostname 192.168.0.16
 +        Port 22
  
 Host rainbow Host rainbow
-        User zhangyk+        User xuelab
         Hostname 101.6.120.23         Hostname 101.6.120.23
         Port 180         Port 180
 Host irainbow Host irainbow
-        User zhangyk+        User xuelab
         Hostname 192.168.0.10         Hostname 192.168.0.10
 +        Port 22
  
 Host red Host red
-        User zhangyk+        User xuelab
         Hostname 101.6.120.23         Hostname 101.6.120.23
         Port 181         Port 181
 Host ired Host ired
-        User zhangyk+        User xuelab
         Hostname 192.168.0.11         Hostname 192.168.0.11
 +        Port 22
  
 Host blue Host blue
-        User zhangyk+        User xuelab
         Hostname 101.6.120.23         Hostname 101.6.120.23
         Port 182         Port 182
 Host iblue Host iblue
-        User zhangyk+        User xuelab
         Hostname 192.168.0.12         Hostname 192.168.0.12
 +        Port 22
  
 Host green Host green
-        User zhangyk+        User xuelab
         Hostname 101.6.120.23         Hostname 101.6.120.23
         Port 183         Port 183
 Host igreen Host igreen
-        User zhangyk+        User xuelab
         Hostname 192.168.0.13         Hostname 192.168.0.13
- +        Port 22
-Host orange +
-        User zhangyk +
-        Hostname 101.6.120.23 +
-        Port 184 +
-Host iorange +
-        User zhangyk +
-        Hostname 192.168.0.14+
  
 Host gold Host gold
-        User zhangyk+        User xuelab
         Hostname 101.6.121.48         Hostname 101.6.121.48
- +        Port 22
-Host black +
-        User zhangyk +
-        Hostname 101.6.121.167+
  
 Host white Host white
-        User zhangyk +        User xuelab 
-        Hostname 101.6.122.12+        Hostname 101.6.122.19 
 +        Port 22 
 + 
 +Host black 
 +        User xuelab 
 +        Hostname 101.6.121.111 
 +        Port 22
  
 Host indigo Host indigo
-        User zhangyk+        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 zhangyk +        User xuelab 
-        Hostname 101.6.121.145+        Hostname 101.6.121.38 
 +        Port 22
  
 Host yellow Host yellow
-        User zhangyk+        User xuelab
         Hostname 166.111.157.15         Hostname 166.111.157.15
 +        Port 22
  
 Host purple Host purple
-        User zhangyk+        User xuelab
         Hostname 166.111.157.57         Hostname 166.111.157.57
 +        Port 22
  
 Host azure Host azure
Line 197: Line 226:
         User nmrsu         User nmrsu
         Hostname 192.168.0.18         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.1756524070.txt.gz · Last modified: 2025/08/30 03:21 by zhangyk