User Tools

Site Tools


сервис_ssh

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
сервис_ssh [2023/01/23 08:36]
val [Парольная аутентификация]
сервис_ssh [2023/07/12 16:27]
val [Настройка ssh клиента]
Line 67: Line 67:
   ServerAliveInterval 10   ServerAliveInterval 10
  
-#Host server2+#Host gitlab
 #        Port 2222 #        Port 2222
-#        User backup+##        User root
  
-#Host switch* ​192.168.X.3 192.168.X.4 ​192.168.X.5*+#Host switch* 192.168.X.5*
 #        KexAlgorithms +diffie-hellman-group1-sha1 #        KexAlgorithms +diffie-hellman-group1-sha1
 #        Ciphers +aes128-cbc #        Ciphers +aes128-cbc
Line 96: Line 96:
 student@hostX$ cd /; sudo tar -cf - etc/ | ssh -l user1 gate "cat > etc.tar"​ student@hostX$ cd /; sudo tar -cf - etc/ | ssh -l user1 gate "cat > etc.tar"​
  
-server# ssh switch ​"show cdp neighbors"​+server# ssh switch1 ​"show cdp neighbors"​
 </​code>​ </​code>​
  
Line 170: Line 170:
 ... ...
 </​code><​code>​ </​code><​code>​
-lan# ssh -N -R 2222:​localhost:​22 user1@server.corpX.un+# cat /​proc/​sys/​net/​ipv4/​ip_local_port_range 
 + 
 +lan# ssh -N -R 61022:​localhost:​22 user1@server.corpX.un
  
 lan# ssh -N -R 3101:​192.168.100+X.101:​3389 user1@server.corpX.un lan# ssh -N -R 3101:​192.168.100+X.101:​3389 user1@server.corpX.un
сервис_ssh.txt · Last modified: 2024/06/19 12:22 by val