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 [2022/10/26 13:31]
val [Windows]
сервис_ssh [2023/06/27 12:48]
val [Настройка ssh клиента]
Line 71: Line 71:
 #        User backup #        User backup
  
-#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
Line 233: Line 235:
 ==== Парольная аутентификация ==== ==== Парольная аутентификация ====
 <​code>​ <​code>​
-# apt install sshpass+server# apt install sshpass
  
-[gate.isp.un:​~] ​# sshpass -p '123' ssh 172.16.1.13+server# sshpass -p 'strongpassword' ssh vagrant@node1
  
 server# sshpass -p cisco ssh switchN server# sshpass -p cisco ssh switchN
сервис_ssh.txt · Last modified: 2024/06/19 12:22 by val