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:17] 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 230: Line 233:
 </code> </code>
  
-To sync the config file across all servers, you can download the script below and run it.+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> <code>
 for server in rainbow olive red blue green marine gold white black indigo orange violet yellow purple; for server in rainbow olive red blue green marine gold white black indigo orange violet yellow purple;
Line 236: Line 241:
 do do
         echo $server         echo $server
-        #ssh $server "rm -rf .ssh && cp /home/zhangyk/.bashrc /home/xuelab/" 
         #rsync -avz ~/.ssh/* $server:~/.ssh         #rsync -avz ~/.ssh/* $server:~/.ssh
         rsync -avz ~/.ssh/config $server:~/.ssh         rsync -avz ~/.ssh/config $server:~/.ssh
 done done
- 
- 
 </code> </code>
  
ipaddress.1764508653.txt.gz · Last modified: 2025/11/30 13:17 by zhangyk