This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_ssh [2023/05/18 15:53] val [SSH вместо VPN (привязка к порту сервера)] |
сервис_ssh [2023/11/12 06:29] val [Windows] |
||
---|---|---|---|
Line 19: | Line 19: | ||
HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys | HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys | ||
+ | </code> | ||
+ | |||
+ | === MobaXterm === | ||
+ | |||
+ | * [[https://bbs.archlinux.org/viewtopic.php?id=174595|Weird characters while pasting in terminal]] | ||
+ | <code> | ||
+ | printf "\e[?2004l" | ||
</code> | </code> | ||
Line 67: | Line 74: | ||
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 103: | ||
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> | ||