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 [2024/02/08 10:54] val [SSH вместо VPN (привязка к порту сервера)] |
сервис_ssh [2024/03/14 11:07] val |
||
---|---|---|---|
Line 73: | Line 73: | ||
$ mkdir .ssh/ | $ mkdir .ssh/ | ||
- | $ cat .ssh/config | + | $ cat ~/.ssh/config |
</code><code> | </code><code> | ||
Host * | Host * | ||
Line 111: | Line 111: | ||
==== SSH вместо RCP (SCP) ==== | ==== SSH вместо RCP (SCP) ==== | ||
+ | ==== SCP ==== | ||
<code> | <code> | ||
$ scp -P 2222 val@radio.specialist.ru:/usr/local/www/apache22/data/unix/virus.zip . | $ scp -P 2222 val@radio.specialist.ru:/usr/local/www/apache22/data/unix/virus.zip . | ||
Line 117: | Line 118: | ||
server# sshpass -p cisco scp switchN:running-config /srv/tftp/switchN-running-config | server# sshpass -p cisco scp switchN:running-config /srv/tftp/switchN-running-config | ||
+ | |||
+ | server# scp -3 192.168.X.101:/etc/docker/daemon.json gate:/etc/docker/daemon.json | ||
</code> | </code> | ||
Line 225: | Line 228: | ||
<code> | <code> | ||
- | node1:~# cat .ssh/config | + | node1:~# cat ~/.ssh/config |
</code><code> | </code><code> | ||
Host * | Host * |