Просьба... срочно... очень надо.

Тема в разделе "Raspberry Pi", создана пользователем Igor68, 27 дек 2017.

  1. Igor68

    Igor68 Гуру

    Доброго времени суток!
    В наличии:
    1)Raspberry Pi 3 - 3 штуки.
    2)Ноутбук с Debian и сеть локальная.
    3)SD карты.
    Точно не в наличии:
    1)Монитор
    2)Клавиатура и т.п.

    Убился искать образ с поднятым SSH... уже скачал три-четыре. Кое-как находил(опознавал) их в сети... и понятно ничего сделать не могу. Всё что надо - это настроить и испытать. А войти не чем, кроме как по сети. Дайте ссылочку с образом, где уже поднят SSH.
    Заранее спасибо.
     
  2. ZAZ-965

    ZAZ-965 Гик

    А такая https://www.raspberrypi.org/documentation/remote-access/ssh/ рекомендация для Raspbian не работает?

    3. Enable SSH on a headless Raspberry Pi (add file to SD card on another machine)
    For headless setup, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD card from another computer. When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the file is deleted. The content of the file does not matter; it could contain text, or nothing at all.

    If you have loaded Raspbian onto a blank SD card, you will have two partitions. The first one, which is the smaller one, is the boot partition. Place the file into this one.
     
    sys и Igor68 нравится это.
  3. Igor68

    Igor68 Гуру

    Нет, к сожалению не разобрался в каком файле и что изменить - опыта маловато именно в этом:(
    Ни монитора, ни клавиатуры нет!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    И простыми рекомендациями не справлюсь. Жаль, а хотел сегодня их испытать для себя... по поводу работы железа.
     
  4. ZAZ-965

    ZAZ-965 Гик

    Просто поместить пустой файл с именем ssh в boot раздел, а скрипты инициализации увидят этот ключевой файл и запустят SSH. На Debian смонтировать SD карту с развернутым Raspbian и создать файл ssh
     
    sys и Igor68 нравится это.
  5. Igor68

    Igor68 Гуру

    И вот это:
    это там просто создать файл... или с каким -то содежимым?
     
  6. ZAZ-965

    ZAZ-965 Гик

    Пустой файл
     
    Igor68 нравится это.
  7. Igor68

    Igor68 Гуру

    Ваш ответ предыдущий пришел раньше этого вопроса. Извините.
     
  8. Igor68

    Igor68 Гуру

    Кстати: это не сработало с образом 2017-11-29-raspbian-streatch-lite.img. Но редактирование /etc/network/interfaces нормально сработало - статический IP нормально сделал
     
  9. Igor68

    Igor68 Гуру

    Вообще-то:
    Код (Text):
    kto@debian:/$ nc -vv 192.168.1.234 1-100
    192.168.1.234: inverse host lookup failed: Host name lookup failure
    (UNKNOWN) [192.168.1.234] 100 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 99 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 98 (linuxconf) : Connection refused
    (UNKNOWN) [192.168.1.234] 97 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 96 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 95 (supdup) : Connection refused
    (UNKNOWN) [192.168.1.234] 94 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 93 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 92 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 91 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 90 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 89 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 88 (kerberos) : Connection refused
    (UNKNOWN) [192.168.1.234] 87 (link) : Connection refused
    (UNKNOWN) [192.168.1.234] 86 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 85 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 84 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 83 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 82 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 81 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 80 (http) : Connection refused
    (UNKNOWN) [192.168.1.234] 79 (finger) : Connection refused
    (UNKNOWN) [192.168.1.234] 78 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 77 (rje) : Connection refused
    (UNKNOWN) [192.168.1.234] 76 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 75 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 74 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 73 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 72 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 71 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 70 (gopher) : Connection refused
    (UNKNOWN) [192.168.1.234] 69 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 68 (bootpc) : Connection refused
    (UNKNOWN) [192.168.1.234] 67 (bootps) : Connection refused
    (UNKNOWN) [192.168.1.234] 66 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 65 (tacacs-ds) : Connection refused
    (UNKNOWN) [192.168.1.234] 64 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 63 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 62 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 61 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 60 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 59 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 58 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 57 (mtp) : Connection refused
    (UNKNOWN) [192.168.1.234] 56 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 55 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 54 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 53 (domain) : Connection refused
    (UNKNOWN) [192.168.1.234] 52 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 51 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 50 (re-mail-ck) : Connection refused
    (UNKNOWN) [192.168.1.234] 49 (tacacs) : Connection refused
    (UNKNOWN) [192.168.1.234] 48 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 47 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 46 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 45 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 44 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 43 (whois) : Connection refused
    (UNKNOWN) [192.168.1.234] 42 (nameserver) : Connection refused
    (UNKNOWN) [192.168.1.234] 41 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 40 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 39 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 38 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 37 (time) : Connection refused
    (UNKNOWN) [192.168.1.234] 36 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 35 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 34 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 33 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 32 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 31 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 30 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 29 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 28 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 27 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 26 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 25 (smtp) : Connection refused
    (UNKNOWN) [192.168.1.234] 24 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 23 (telnet) : Connection refused
    (UNKNOWN) [192.168.1.234] 22 (ssh) : Connection refused
    (UNKNOWN) [192.168.1.234] 21 (ftp) : Connection refused
    (UNKNOWN) [192.168.1.234] 20 (ftp-data) : Connection refused
    (UNKNOWN) [192.168.1.234] 19 (chargen) : Connection refused
    (UNKNOWN) [192.168.1.234] 18 (msp) : Connection refused
    (UNKNOWN) [192.168.1.234] 17 (qotd) : Connection refused
    (UNKNOWN) [192.168.1.234] 16 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 15 (netstat) : Connection refused
    (UNKNOWN) [192.168.1.234] 14 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 13 (daytime) : Connection refused
    (UNKNOWN) [192.168.1.234] 12 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 11 (systat) : Connection refused
    (UNKNOWN) [192.168.1.234] 10 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 9 (discard) : Connection refused
    (UNKNOWN) [192.168.1.234] 8 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 7 (echo) : Connection refused
    (UNKNOWN) [192.168.1.234] 6 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 5 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 4 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 3 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 2 (?) : Connection refused
    (UNKNOWN) [192.168.1.234] 1 (tcpmux) : Connection refused
    sent 0, rcvd 0
    kto@debian:/$
    Это уже для образа 2017-11-29-raspbian-stretch.img. То есть не облегчённая версия.
     
  10. Igor68

    Igor68 Гуру

    Ради бога простите! Вопрос конечно снимаю... хоть так и не получилось. Но.... поступил по деревянному... вот только не знаю сверху или снизу. Одним словом в /etc/rc.local записал:
    /etc/init.d/ssh restart
    Ну понятное дело, что пошло. А вот по науке никак.
     
    sys нравится это.