This shows you the differences between two versions of the page.
использование_протоколов_rsh_и_rcp [2010/09/09 14:04] val |
использование_протоколов_rsh_и_rcp [2013/05/22 13:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Использование протоколов RSH и RCP ====== | ||
- | ===== Настройка cisco ===== | ||
- | <code> | ||
- | ip host gate 192.168.X.1 | ||
- | |||
- | ip rcmd rcp-enable | ||
- | ip rcmd rsh-enable | ||
- | ip rcmd remote-host root gate root enable | ||
- | </code> | ||
- | |||
- | ===== Ubuntu ===== | ||
- | <code> | ||
- | gate# apt-get install rsh-client | ||
- | </code> | ||
- | |||
- | ===== FreeBSD/Ubuntu ===== | ||
- | <code> | ||
- | gate# rsh switch "sh run" | ||
- | |||
- | gate# rsh switch "dir flash:" | ||
- | |||
- | gate# cat acl1sw.conf | ||
- | ... | ||
- | ! access-list 1 permit host 192.168.X.50 | ||
- | deny any | ||
- | |||
- | gate# rcp acl1sw.conf switch:running-config | ||
- | |||
- | gate# rsh switch "show access-lists" | ||
- | |||
- | gate# rcp switch:startup-config conf.bak | ||
- | |||
- | gate# rsh switch "dir flash:/" | ||
- | |||
- | gate# rcp switch:flash:/c2900XL-c3h2s-mz.120-5.3.WC.1.bin ios.bak | ||
- | |||
- | gate# file ios.bak | ||
- | ios.bak: MS-DOS executable (EXE) | ||
- | </code> |